Deleted Added
full compact
fdesc.h (60833) fdesc.h (60938)
1/*
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software donated to Berkeley by
6 * Jan-Simon Pendry.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)fdesc.h 8.5 (Berkeley) 1/21/94
37 *
1/*
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software donated to Berkeley by
6 * Jan-Simon Pendry.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)fdesc.h 8.5 (Berkeley) 1/21/94
37 *
38 * $FreeBSD: head/sys/fs/fdescfs/fdesc.h 60833 2000-05-23 20:41:01Z jake $
38 * $FreeBSD: head/sys/fs/fdescfs/fdesc.h 60938 2000-05-26 02:09:24Z jake $
39 */
40
41#ifdef _KERNEL
42struct fdescmount {
43 struct vnode *f_root; /* Root node */
44};
45
46#define FD_ROOT 1
47#define FD_DESC 3
48
49typedef enum {
50 Froot,
51 Fdesc
52} fdntype;
53
54struct fdescnode {
39 */
40
41#ifdef _KERNEL
42struct fdescmount {
43 struct vnode *f_root; /* Root node */
44};
45
46#define FD_ROOT 1
47#define FD_DESC 3
48
49typedef enum {
50 Froot,
51 Fdesc
52} fdntype;
53
54struct fdescnode {
55 LIST_ENTRY(struct fdescnode) fd_hash; /* Hash list */
55 LIST_ENTRY(fdescnode) fd_hash; /* Hash list */
56 struct vnode *fd_vnode; /* Back ptr to vnode */
57 fdntype fd_type; /* Type of this node */
58 unsigned fd_fd; /* Fd to be dup'ed */
59 char *fd_link; /* Link to fd/n */
60 int fd_ix; /* filesystem index */
61};
62
63#define VFSTOFDESC(mp) ((struct fdescmount *)((mp)->mnt_data))
64#define VTOFDESC(vp) ((struct fdescnode *)(vp)->v_data)
65
66extern int fdesc_init __P((struct vfsconf *));
67extern int fdesc_root __P((struct mount *, struct vnode **));
68extern int fdesc_allocvp __P((fdntype, int, struct mount *, struct vnode **));
69#endif /* _KERNEL */
56 struct vnode *fd_vnode; /* Back ptr to vnode */
57 fdntype fd_type; /* Type of this node */
58 unsigned fd_fd; /* Fd to be dup'ed */
59 char *fd_link; /* Link to fd/n */
60 int fd_ix; /* filesystem index */
61};
62
63#define VFSTOFDESC(mp) ((struct fdescmount *)((mp)->mnt_data))
64#define VTOFDESC(vp) ((struct fdescnode *)(vp)->v_data)
65
66extern int fdesc_init __P((struct vfsconf *));
67extern int fdesc_root __P((struct mount *, struct vnode **));
68extern int fdesc_allocvp __P((fdntype, int, struct mount *, struct vnode **));
69#endif /* _KERNEL */