| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: rump.h,v 1.14 2009/05/02 15:20:08 pooka Exp $ */ | | 1 | /* $NetBSD: rump.h,v 1.15 2009/05/03 16:01:44 pooka Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 2007 Antti Kantee. All Rights Reserved. | | 4 | * Copyright (c) 2007 Antti Kantee. All Rights Reserved. |
5 | * | | 5 | * |
6 | * Development of this software was supported by Google Summer of Code. | | 6 | * Development of this software was supported by Google Summer of Code. |
7 | * | | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | | 8 | * Redistribution and use in source and binary forms, with or without |
9 | * modification, are permitted provided that the following conditions | | 9 | * modification, are permitted provided that the following conditions |
10 | * are met: | | 10 | * are met: |
11 | * 1. Redistributions of source code must retain the above copyright | | 11 | * 1. Redistributions of source code must retain the above copyright |
12 | * notice, this list of conditions and the following disclaimer. | | 12 | * notice, this list of conditions and the following disclaimer. |
13 | * 2. Redistributions in binary form must reproduce the above copyright | | 13 | * 2. Redistributions in binary form must reproduce the above copyright |
14 | * notice, this list of conditions and the following disclaimer in the | | 14 | * notice, this list of conditions and the following disclaimer in the |
| @@ -124,26 +124,27 @@ void rump_cred_destroy(kauth_cred_t); | | | @@ -124,26 +124,27 @@ void rump_cred_destroy(kauth_cred_t); |
124 | | | 124 | |
125 | #define rump_cred_suserput(c) rump_cred_destroy(c) | | 125 | #define rump_cred_suserput(c) rump_cred_destroy(c) |
126 | /* COMPAT_NETHACK */ | | 126 | /* COMPAT_NETHACK */ |
127 | #define WizardMode() rump_cred_suserget() | | 127 | #define WizardMode() rump_cred_suserget() |
128 | #define YASD(cred) rump_cred_suserput(cred) | | 128 | #define YASD(cred) rump_cred_suserput(cred) |
129 | | | 129 | |
130 | int rump_vfs_unmount(struct mount *, int); | | 130 | int rump_vfs_unmount(struct mount *, int); |
131 | int rump_vfs_root(struct mount *, struct vnode **, int); | | 131 | int rump_vfs_root(struct mount *, struct vnode **, int); |
132 | int rump_vfs_statvfs(struct mount *, struct statvfs *); | | 132 | int rump_vfs_statvfs(struct mount *, struct statvfs *); |
133 | int rump_vfs_sync(struct mount *, int, kauth_cred_t); | | 133 | int rump_vfs_sync(struct mount *, int, kauth_cred_t); |
134 | int rump_vfs_fhtovp(struct mount *, struct fid *, struct vnode **); | | 134 | int rump_vfs_fhtovp(struct mount *, struct fid *, struct vnode **); |
135 | int rump_vfs_vptofh(struct vnode *, struct fid *, size_t *); | | 135 | int rump_vfs_vptofh(struct vnode *, struct fid *, size_t *); |
136 | void rump_vfs_syncwait(struct mount *); | | 136 | void rump_vfs_syncwait(struct mount *); |
| | | 137 | int rump_vfs_getmp(const char *, struct mount **); |
137 | | | 138 | |
138 | struct lwp *rump_newproc_switch(void); | | 139 | struct lwp *rump_newproc_switch(void); |
139 | struct lwp *rump_setup_curlwp(pid_t, lwpid_t, int); | | 140 | struct lwp *rump_setup_curlwp(pid_t, lwpid_t, int); |
140 | struct lwp *rump_get_curlwp(void); | | 141 | struct lwp *rump_get_curlwp(void); |
141 | void rump_clear_curlwp(void); | | 142 | void rump_clear_curlwp(void); |
142 | | | 143 | |
143 | void rump_rcvp_set(struct vnode *, struct vnode *); | | 144 | void rump_rcvp_set(struct vnode *, struct vnode *); |
144 | struct vnode *rump_cdir_get(void); | | 145 | struct vnode *rump_cdir_get(void); |
145 | | | 146 | |
146 | /* I picked the wrong header to stop sniffin' glue */ | | 147 | /* I picked the wrong header to stop sniffin' glue */ |
147 | int rump_syspuffs_glueinit(int, int *); | | 148 | int rump_syspuffs_glueinit(int, int *); |
148 | | | 149 | |
149 | int rump_virtif_create(int); | | 150 | int rump_virtif_create(int); |