Print this page
XXXX adding PID information to netstat output

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/sockfs/sockcommon.h
          +++ new/usr/src/uts/common/fs/sockfs/sockcommon.h
↓ open down ↓ 155 lines elided ↑ open up ↑
 156  156      int *, boolean_t *);
 157  157  extern ssize_t  so_queue_msg_impl(struct sonode *, mblk_t *, size_t, int,
 158  158      int *, boolean_t *, struct sof_instance *);
 159  159  extern void     so_signal_oob(sock_upper_handle_t, ssize_t);
 160  160  
 161  161  extern void     so_connected(sock_upper_handle_t, sock_connid_t, struct cred *,
 162  162      pid_t);
 163  163  extern int      so_disconnected(sock_upper_handle_t, sock_connid_t, int);
 164  164  extern void     so_txq_full(sock_upper_handle_t, boolean_t);
 165  165  extern void     so_opctl(sock_upper_handle_t, sock_opctl_action_t, uintptr_t);
      166 +extern mblk_t   *so_get_sock_pid_mblk(sock_upper_handle_t);
 166  167  /* Common misc. functions */
 167  168  
 168  169          /* accept queue */
 169  170  extern int      so_acceptq_enqueue(struct sonode *, struct sonode *);
 170  171  extern int      so_acceptq_enqueue_locked(struct sonode *, struct sonode *);
 171  172  extern int      so_acceptq_dequeue(struct sonode *, boolean_t,
 172  173      struct sonode **);
 173  174  extern void     so_acceptq_flush(struct sonode *, boolean_t);
 174  175  
 175  176          /* connect */
↓ open down ↓ 50 lines elided ↑ open up ↑
 226  227  extern void     so_notify_newconn(struct sonode *);
 227  228  extern void     so_notify_shutdown(struct sonode *);
 228  229  extern void     so_notify_error(struct sonode *);
 229  230  
 230  231  /* Common sonode functions */
 231  232  extern int      sonode_constructor(void *, void *, int);
 232  233  extern void     sonode_destructor(void *, void *);
 233  234  extern void     sonode_init(struct sonode *, struct sockparams *,
 234  235      int, int, int, sonodeops_t *);
 235  236  extern void     sonode_fini(struct sonode *);
      237 +extern void     sonode_insert_pid(struct sonode *, pid_t);
      238 +extern void     sonode_remove_pid(struct sonode *, pid_t);
 236  239  
 237  240  /*
 238  241   * Event flags to socket_sendsig().
 239  242   */
 240  243  #define SOCKETSIG_WRITE 0x1
 241  244  #define SOCKETSIG_READ  0x2
 242  245  #define SOCKETSIG_URG   0x4
 243  246  
 244  247  extern sonodeops_t so_sonodeops;
 245  248  extern sock_upcalls_t so_upcalls;
 246  249  
 247  250  #ifdef  __cplusplus
 248  251  }
 249  252  #endif
 250  253  #endif /* _SOCKCOMMON_H_ */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX