Print this page
OS-5370 panic in signalfd
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/signalfd.h
          +++ new/usr/src/uts/common/sys/signalfd.h
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3   * Common Development and Distribution License ("CDDL"), version 1.0.
   4    4   * You may only use this file in accordance with the terms of version
   5    5   * 1.0 of the CDDL.
   6    6   *
   7    7   * A full copy of the text of the CDDL should have accompanied this
   8    8   * source.  A copy of the CDDL is also available via the Internet at
   9    9   * http://www.illumos.org/license/CDDL.
  10   10   */
  11   11  
  12   12  /*
  13      - * Copyright 2015 Joyent, Inc.
       13 + * Copyright 2016 Joyent, Inc.
  14   14   */
  15   15  
  16   16  /*
  17   17   * Header file to support the signalfd facility. Note that this facility
  18   18   * is designed to be binary compatible with the Linux signalfd facility, modulo
  19   19   * the signals themselves; values for constants here should therefore exactly
  20   20   * match those found in Linux, and this facility shouldn't be extended
  21   21   * independently of Linux.
  22   22   */
  23   23  
↓ open down ↓ 44 lines elided ↑ open up ↑
  68   68  
  69   69  #ifndef _KERNEL
  70   70  
  71   71  extern int signalfd(int, const sigset_t *, int);
  72   72  
  73   73  #else
  74   74  
  75   75  #define SIGNALFDMNRN_SIGNALFD   0
  76   76  #define SIGNALFDMNRN_CLONE      1
  77   77  
  78      -typedef struct sigfd_wake_list {
  79      -        list_node_t sigfd_wl_lst;
  80      -        void *sigfd_wl_state;
  81      -} sigfd_wake_list_t;
  82      -
  83   78  /*
  84   79   * This holds the proc_t state for a process which is using signalfd.
       80 + * Its presence and contents are protected by p_lock.
  85   81   */
  86   82  typedef struct sigfd_proc_state {
  87   83          void (*sigfd_pollwake_cb)(void *, int);
  88   84          list_t sigfd_list;
  89   85  } sigfd_proc_state_t;
  90   86  
  91   87  
  92   88  extern void (*sigfd_exit_helper)();
  93   89  
  94   90  #endif /* _KERNEL */
  95   91  
  96   92  #ifdef  __cplusplus
  97   93  }
  98   94  #endif
  99   95  
 100   96  #endif  /* _SYS_SIGNALFD_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX