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.include.redist.c% 10 * 11 * @(#)fdesc.h 7.1 (Berkeley) 07/12/92 12 * 13 * $Id: fdesc.h,v 1.5 1992/05/30 10:05:34 jsp Exp jsp $ 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 }; 24 25 #define VFSTOFDESC(mp) ((struct fdescmount *)((mp)->mnt_data)) 26 #define VTOFDESC(vp) ((struct fdescnode *)(vp)->v_data) 27 28 extern int (**fdesc_vnodeop_p)(); 29 extern struct vfsops fdesc_vfsops; 30 #endif /* KERNEL */ 31