Home | History | Annotate | Line # | Download | only in fdesc
fdesc.h revision 1.1
      1 /*
      2  * Copyright (c) 1992 The Regents of the University of California
      3  * Copyright (c) 1990, 1992 Jan-Simon Pendry
      4  * All rights reserved.
      5  *
      6  * This code is derived from software donated to Berkeley by
      7  * Jan-Simon Pendry.
      8  *
      9  * %sccs.redist.c%
     10  *
     11  *	%W% (Berkeley) %G%
     12  *
     13  * $Id: fdesc.h,v 1.1 1993/03/23 23:56:31 cgd Exp $
     14  */
     15 
     16 #ifdef KERNEL
     17 struct fdescmount {
     18 	struct vnode	*f_root;	/* Root node */
     19 };
     20 
     21 struct fdescnode {
     22 	unsigned	f_fd;			/* Fd to be dup'ed */
     23 	/*int		f_isroot;*/		/* Is this the root */
     24 };
     25 
     26 #define VFSTOFDESC(mp)	((struct fdescmount *)((mp)->mnt_data))
     27 #define	VTOFDESC(vp) ((struct fdescnode *)(vp)->v_data)
     28 
     29 extern struct vnodeops fdesc_vnodeops;
     30 extern struct vfsops fdesc_vfsops;
     31 #endif /* KERNEL */
     32