FreeBSD/sys/fs/pseudofs/pseudofs_vnops.c
/*
 * Returns non-zero if given file is visible to given thread.
 */
Returns non-zero if given file is visible to given thread.
Returns non - zero if given file is visible to given thread .
static int
pfs_visible_proc(struct thread *td, struct pfs_node *pn, struct proc *proc)
{
	int visible;
	if (proc == NULL)
		return (0);
	PROC_LOCK_ASSERT(proc, MA_OWNED);
	visible = ((proc->p_flag & P_WEXIT) == 0);
	if (visible)
		visible = (p_cansee(td, proc) == 0);
	if (visible && pn->pn_vis != NULL)
		visible = pn_vis(td, proc, pn);
	if (!visible)
		return (0);
	return (1);
}
static int pfs_visible_proc ( struct thread * td , struct pfs_node * pn , struct proc * proc ) { int visible ; if ( proc == NULL ) return ( 0 ) ; PROC_LOCK_ASSERT ( proc , MA_OWNED ) ; visible = ( ( proc -> p_flag & P_WEXIT ) == 0 ) ; if ( visible ) visible = ( p_cansee ( td , proc ) == 0 ) ; if ( visible && pn -> pn_vis != NULL ) visible = pn_vis ( td , proc , pn ) ; if ( ! visible ) return ( 0 ) ; return ( 1 ) ; }
Returns non-zero if given file is visible to given thread.
Returns non - zero if given file is visible to given thread .