FreeBSD/sys/kern/sys_procdesc.c
/*
 * Function to be used by procstat(1) sysctls when returning procdesc
 * information.
 */
Function to be used by procstat(1) sysctls when returning procdesc
information.
Function to be used by procstat ( 1 ) sysctls when returning procdesc information .
pid_t
procdesc_pid(struct file *fp_procdesc)
{
	struct procdesc *pd;
	KASSERT(fp_procdesc->f_type == DTYPE_PROCDESC,
	   ("procdesc_pid: !procdesc"));
	pd = fp_procdesc->f_data;
	return (pd->pd_pid);
}
pid_t procdesc_pid ( struct file * fp_procdesc ) { struct procdesc * pd ; KASSERT ( fp_procdesc -> f_type == DTYPE_PROCDESC , ( " " ) ) ; pd = fp_procdesc -> f_data ; return ( pd -> pd_pid ) ; }
Function to be used by procstat(1) sysctls when returning procdesc
 information.
Function to be used by procstat ( 1 ) sysctls when returning procdesc information .