prfdinfo_t
process_hash_iterfd(const prfdinfo_t *pr, void *psinfop)
show_file(void *data, const prfdinfo_t *info)
dofcntl(struct ps_prochandle *Pr, const prfdinfo_t *info, int mandatory,
show_door(struct ps_prochandle *Pr, const prfdinfo_t *info)
show_sockopts(struct ps_prochandle *Pr, const prfdinfo_t *info)
static void dofcntl(struct ps_prochandle *, const prfdinfo_t *, int, int);
static void dosocket(struct ps_prochandle *, const prfdinfo_t *);
static void dosocknames(struct ps_prochandle *, const prfdinfo_t *);
static void dofifo(struct ps_prochandle *, const prfdinfo_t *);
show_sockfilters(struct ps_prochandle *Pr, const prfdinfo_t *info)
static void show_door(struct ps_prochandle *, const prfdinfo_t *);
dopeerucred(struct ps_prochandle *Pr, const prfdinfo_t *info)
dosocknames(struct ps_prochandle *Pr, const prfdinfo_t *info)
dosocket(struct ps_prochandle *Pr, const prfdinfo_t *info)
dofifo(struct ps_prochandle *Pr, const prfdinfo_t *info)
prfdinfo_t *fd_info; /* fd info */
fdwalk_cb(const prfdinfo_t *info, void *arg)
iter_fd(void *data, const prfdinfo_t *fdinfo)
typedef int proc_fdwalk_f(const prfdinfo_t *, void *);
extern int proc_fdinfowalk(const prfdinfo_t *, proc_fdinfowalk_f *, void *);
extern prfdinfo_t *proc_get_fdinfo(pid_t, int);
extern const void *proc_fdinfo_misc(const prfdinfo_t *, uint_t, size_t *);
extern void proc_fdinfo_free(prfdinfo_t *);
typedef int proc_fdinfo_f(void *, const prfdinfo_t *);
prfdinfo_t *
prfdinfo_t *info = NULL;
off = offsetof(prfdinfo_t, pr_misc);
proc_fdinfo_misc(const prfdinfo_t *info, uint_t type, size_t *buflen)
prfdinfo_t *
proc_fdinfo_dup(const prfdinfo_t *old)
prfdinfo_t *new;
size_t sz = offsetof(prfdinfo_t, pr_misc);
proc_fdinfo_free(prfdinfo_t *info)
proc_fdinfo_from_core(const prfdinfo_core_t *core, prfdinfo_t **infop)
prfdinfo_t *info;
len = offsetof(prfdinfo_t, pr_misc) + sizeof (pr_misc_header_t);
proc_fdinfo_to_core(const prfdinfo_t *info, prfdinfo_core_t *core)
prfdinfo_t *info;
proc_fdinfowalk(const prfdinfo_t *info, proc_fdinfowalk_f *func, void *arg)
off_t off = offsetof(prfdinfo_t, pr_misc);
extern int proc_fdinfo_from_core(const prfdinfo_core_t *, prfdinfo_t **);
extern int proc_fdinfo_to_core(const prfdinfo_t *, prfdinfo_core_t *);
extern prfdinfo_t *proc_fdinfo_dup(const prfdinfo_t *);
fdwalkcb(const prfdinfo_t *info, void *arg)
sz = offsetof(prfdinfo_t, pr_misc) + sizeof (pr_misc_header_t);
prgetfdinfo(proc_t *p, vnode_t *vp, prfdinfo_t *fdinfo, cred_t *cred,
prfdinfo_t *fdinfo;
pr_iol_initlist(&data, sizeof (prfdinfo_t) + MAXPATHLEN + 2, 1);
fdinfo = pr_iol_newbuf(&data, offsetof(prfdinfo_t, pr_misc));