summaryrefslogtreecommitdiff
path: root/sig.c
blob: 2b5ab5ecadd20d76e0913ebbe7539f85eedbee03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>
#include <signal.h>

#include "sig.h"

void register_signal(int signal, void (*handler)(int))
{
	sigset_t block_mask;
	struct sigaction saction;

	sigfillset(&block_mask);

	saction.sa_handler = handler;
	saction.sa_mask = block_mask;
	saction.sa_flags = SA_RESTART;

	sigaction(signal, &saction, NULL);
}

void register_signal_f(int signal, void (*handler)(int), int flags)
{
	sigset_t block_mask;
	struct sigaction saction;

	sigfillset(&block_mask);

	saction.sa_handler = handler;
	saction.sa_mask = block_mask;
	saction.sa_flags = flags;

	sigaction(signal, &saction, NULL);
}
elect name='dt' onchange='this.form.submit();'>
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>2016-03-10 09:04:07 +0530
committerMark Brown <broonie@kernel.org>2016-03-10 10:37:14 +0700
commit391005e8e3cd5bb641dff5abb1ad37254602cd7e (patch)
treeb8871a4fcb2c73d02d7ed78f5566a39c7af611e1 /Documentation/kobject.txt
parent571d507809812e1d9c06aa80be714bf39ece6b8e (diff)
ASoC: hdac_hdmi: Fix infoframe programming
Audio infoframe used incorrect buffer, so fix it. Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/kobject.txt')