Print this page
12046 Provide /proc/<PID>/fdinfo/

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/prsystm.h
          +++ new/usr/src/uts/common/sys/prsystm.h
↓ open down ↓ 21 lines elided ↑ open up ↑
  22   22  /*
  23   23   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   28  /*        All Rights Reserved   */
  29   29  
  30   30  /*
  31   31   * Copyright (c) 2013, Joyent, Inc. All rights reserved.
       32 + * Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
  32   33   */
  33   34  
  34   35  #ifndef _SYS_PRSYSTM_H
  35   36  #define _SYS_PRSYSTM_H
  36   37  
  37   38  #include <sys/isa_defs.h>
  38   39  #include <sys/zone.h>
  39   40  
  40   41  #ifdef  __cplusplus
  41   42  extern "C" {
↓ open down ↓ 5 lines elided ↑ open up ↑
  47   48  extern kcondvar_t *pr_pid_cv;
  48   49  
  49   50  struct prfpregset;
  50   51  struct pstatus;
  51   52  struct lwpstatus;
  52   53  struct psinfo;
  53   54  struct lwpsinfo;
  54   55  struct prcred;
  55   56  struct prpriv;
  56   57  struct prsecflags;
       58 +struct prfdinfov2;
  57   59  
  58   60  struct seg;
  59   61  struct regs;
  60   62  struct watched_page;
  61   63  
  62   64  /*
  63   65   * These are functions in the procfs module that are
  64   66   * called from the kernel proper and from other modules.
  65   67   */
  66   68  extern uint_t pr_getprot(struct seg *, int, void **,
↓ open down ↓ 3 lines elided ↑ open up ↑
  70   72  extern int  pr_isobject(struct vnode *);
  71   73  extern int  pr_isself(struct vnode *);
  72   74  extern void prinvalidate(struct user *);
  73   75  extern void prgetstatus(proc_t *, struct pstatus *, zone_t *);
  74   76  extern void prgetlwpstatus(kthread_t *, struct lwpstatus *, zone_t *);
  75   77  extern void prgetpsinfo(proc_t *, struct psinfo *);
  76   78  extern void prgetlwpsinfo(kthread_t *, struct lwpsinfo *);
  77   79  extern void prgetprfpregs(klwp_t *, struct prfpregset *);
  78   80  extern void prgetprxregs(klwp_t *, caddr_t);
  79   81  extern int  prgetprxregsize(proc_t *);
  80      -#if defined(__lint)
  81      -/* Work around lint confusion between old and new prcred definitions */
  82      -extern void prgetcred();
  83      -#else
  84   82  extern void prgetcred(proc_t *, struct prcred *);
  85      -#endif
  86   83  extern void prgetpriv(proc_t *, struct prpriv *);
  87   84  extern size_t prgetprivsize(void);
  88   85  extern void prgetsecflags(proc_t *, struct prsecflags *);
  89   86  extern int  prnsegs(struct as *, int);
       87 +extern u_offset_t prgetfdinfosize(proc_t *, vnode_t *, cred_t *);
       88 +extern int prgetfdinfo(proc_t *, vnode_t *, struct prfdinfov2 *, cred_t *,
       89 +    list_t *);
  90   90  extern void prexit(proc_t *);
  91   91  extern void prfree(proc_t *);
  92   92  extern void prlwpexit(kthread_t *);
  93   93  extern void prlwpfree(proc_t *, lwpent_t *);
  94   94  extern void prexecstart(void);
  95   95  extern void prexecend(void);
  96   96  extern void prrelvm(void);
  97   97  extern void prbarrier(proc_t *);
  98   98  extern void prstop(int, int);
  99   99  extern void prunstop(void);
↓ open down ↓ 53 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX