|
|
| version 1.6, 2004/03/01 06:33:22 | version 1.7, 2004/05/02 03:05:11 |
|---|---|
| Line 80 static int pfsvplock; | Line 80 static int pfsvplock; |
| * the vnode free list. | * the vnode free list. |
| */ | */ |
| int | int |
| procfs_allocvp(mp, vpp, pid, pfs_type) | procfs_allocvp(struct mount *mp, struct vnode **vpp, long pid, pfstype pfs_type) |
| struct mount *mp; | |
| struct vnode **vpp; | |
| long pid; | |
| pfstype pfs_type; | |
| { | { |
| struct thread *td = curthread; /* XXX */ | struct thread *td = curthread; /* XXX */ |
| struct pfsnode *pfs; | struct pfsnode *pfs; |
| Line 220 out: | Line 216 out: |
| } | } |
| int | int |
| procfs_freevp(vp) | procfs_freevp(struct vnode *vp) |
| struct vnode *vp; | |
| { | { |
| struct pfsnode **pfspp; | struct pfsnode **pfspp; |
| struct pfsnode *pfs = VTOPFS(vp); | struct pfsnode *pfs = VTOPFS(vp); |
| Line 333 procfs_rw(struct vop_read_args *ap) | Line 328 procfs_rw(struct vop_read_args *ap) |
| * EFAULT: user i/o buffer is not addressable | * EFAULT: user i/o buffer is not addressable |
| */ | */ |
| int | int |
| vfs_getuserstr(uio, buf, buflenp) | vfs_getuserstr(struct uio *uio, char *buf, int *buflenp) |
| struct uio *uio; | |
| char *buf; | |
| int *buflenp; | |
| { | { |
| int xlen; | int xlen; |
| int error; | int error; |
| Line 368 vfs_getuserstr(uio, buf, buflenp) | Line 360 vfs_getuserstr(uio, buf, buflenp) |
| } | } |
| vfs_namemap_t * | vfs_namemap_t * |
| vfs_findname(nm, buf, buflen) | vfs_findname(vfs_namemap_t *nm, char *buf, int buflen) |
| vfs_namemap_t *nm; | |
| char *buf; | |
| int buflen; | |
| { | { |
| for (; nm->nm_name; nm++) | for (; nm->nm_name; nm++) |