https://github.com/torvalds/linux
Revision 56731b16ce5a9f11cb9496d76e4ffac11987fc85 authored by Brian Keiseler on 12 January 2015, 11:04:12 UTC, committed by Brian Keiseler on 12 January 2015, 11:04:12 UTC
1 parent 5019485
Raw File
Tip revision: 56731b16ce5a9f11cb9496d76e4ffac11987fc85 authored by Brian Keiseler on 12 January 2015, 11:04:12 UTC
Update Copyright
Tip revision: 56731b1
signalfd.h
/*
 *  include/linux/signalfd.h
 *
 *  Copyright (C) 2007  Davide Libenzi <davidel@xmailserver.org>
 *
 */
#ifndef _LINUX_SIGNALFD_H
#define _LINUX_SIGNALFD_H

#include <uapi/linux/signalfd.h>


#ifdef CONFIG_SIGNALFD

/*
 * Deliver the signal to listening signalfd.
 */
static inline void signalfd_notify(struct task_struct *tsk, int sig)
{
	if (unlikely(waitqueue_active(&tsk->sighand->signalfd_wqh)))
		wake_up(&tsk->sighand->signalfd_wqh);
}

extern void signalfd_cleanup(struct sighand_struct *sighand);

#else /* CONFIG_SIGNALFD */

static inline void signalfd_notify(struct task_struct *tsk, int sig) { }

static inline void signalfd_cleanup(struct sighand_struct *sighand) { }

#endif /* CONFIG_SIGNALFD */

#endif /* _LINUX_SIGNALFD_H */
back to top