root/include/linux/signalfd.h

/* [previous][next][first][last][top][bottom][index][help] [+1 include/linux/signalfd.h] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. signalfd_notify
  2. signalfd_notify
  3. signalfd_cleanup

   1 /*
   2  *  include/linux/signalfd.h
   3  *
   4  *  Copyright (C) 2007  Davide Libenzi <davidel@xmailserver.org>
   5  *
   6  */
   7 #ifndef _LINUX_SIGNALFD_H
   8 #define _LINUX_SIGNALFD_H
   9 
  10 #include <uapi/linux/signalfd.h>
  11 
  12 
  13 #ifdef CONFIG_SIGNALFD
  14 
  15 /*
  16  * Deliver the signal to listening signalfd.
  17  */
  18 static inline void signalfd_notify(struct task_struct *tsk, int sig)
     /* [previous][next][first][last][top][bottom][index][help] [+18 include/linux/signalfd.h] */
  19 {
  20         if (unlikely(waitqueue_active(&tsk->sighand->signalfd_wqh)))
  21                 wake_up(&tsk->sighand->signalfd_wqh);
  22 }
  23 
  24 extern void signalfd_cleanup(struct sighand_struct *sighand);
  25 
  26 #else /* CONFIG_SIGNALFD */
  27 
  28 static inline void signalfd_notify(struct task_struct *tsk, int sig) { }
     /* [previous][next][first][last][top][bottom][index][help] [+28 include/linux/signalfd.h] */
  29 
  30 static inline void signalfd_cleanup(struct sighand_struct *sighand) { }
     /* [previous][next][first][last][top][bottom][index][help] [+30 include/linux/signalfd.h] */
  31 
  32 #endif /* CONFIG_SIGNALFD */
  33 
  34 #endif /* _LINUX_SIGNALFD_H */

/* [previous][next][first][last][top][bottom][index][help] [+34 include/linux/signalfd.h] */