FreeBSD/sys/fs/pseudofs/pseudofs_vnops.c
/*
 * Returns the fileno, adjusted for target pid
 */
Returns the fileno, adjusted for target pid
Returns the fileno adjusted for target pid
static uint32_t
pn_fileno(struct pfs_node *pn, pid_t pid)
{
	KASSERT(pn->pn_fileno > 0,
	    ("%s(): no fileno allocated", __func__));
	if (pid != NO_PID)
		return (pn->pn_fileno * NO_PID + pid);
	return (pn->pn_fileno);
}
static uint32_t pn_fileno ( struct pfs_node * pn , pid_t pid ) { KASSERT ( pn -> pn_fileno > 0 , ( " " , __func__ ) ) ; if ( pid != NO_PID ) return ( pn -> pn_fileno * NO_PID + pid ) ; return ( pn -> pn_fileno ) ; }
Returns the fileno, adjusted for target pid
Returns the fileno adjusted for target pid