pass V_SAVE to vinvalbuf
[unix-history] / usr / src / sys / miscfs / portal / portal.h
CommitLineData
7b68e1cc 1/*
1446b03c
KB
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
7b68e1cc
JSP
4 *
5 * This code is derived from software donated to Berkeley by
6 * Jan-Simon Pendry.
7 *
8 * %sccs.include.redist.c%
9 *
1611db1e 10 * @(#)portal.h 8.4 (Berkeley) %G%
7b68e1cc
JSP
11 *
12 * $Id: portal.h,v 1.3 1992/05/30 10:05:24 jsp Exp jsp $
13 */
14
15struct portal_args {
16 char *pa_config; /* Config file */
17 int pa_socket; /* Socket to server */
18};
19
20struct portal_cred {
e8b5158e
JSP
21 int pcr_flag; /* File open mode */
22 uid_t pcr_uid; /* From ucred */
23 short pcr_ngroups; /* From ucred */
24 gid_t pcr_groups[NGROUPS]; /* From ucred */
7b68e1cc
JSP
25};
26
7b68e1cc
JSP
27#ifdef KERNEL
28struct portalmount {
29 struct vnode *pm_root; /* Root node */
30 struct file *pm_server; /* Held reference to server socket */
31};
32
33struct portalnode {
34 int pt_size; /* Length of Arg */
35 char *pt_arg; /* Arg to send to server */
36 int pt_fileid; /* cookie */
37};
38
39#define VFSTOPORTAL(mp) ((struct portalmount *)((mp)->mnt_data))
40#define VTOPORTAL(vp) ((struct portalnode *)(vp)->v_data)
41
42#define PORTAL_ROOTFILEID 2
43
44extern int (**portal_vnodeop_p)();
45extern struct vfsops portal_vfsops;
46#endif /* KERNEL */