1 | /* $NetBSD: kern_if.h,v 1.2 2016/01/26 23:25:40 pooka Exp $ */ |
2 | |
3 | /* |
4 | * Automatically generated. DO NOT EDIT. |
5 | * from: NetBSD: rumpkern.ifspec,v 1.14 2016/01/26 23:22:22 pooka Exp |
6 | * by: NetBSD: makerumpif.sh,v 1.10 2016/01/26 23:21:18 pooka Exp |
7 | */ |
8 | |
9 | #ifndef _RUMP_PRIF_KERN_H_ |
10 | #define _RUMP_PRIF_KERN_H_ |
11 | |
12 | int rump_module_init(const struct modinfo * const *, size_t); |
13 | typedef int (*rump_module_init_fn)(const struct modinfo * const *, size_t); |
14 | int rump_module_fini(const struct modinfo *); |
15 | typedef int (*rump_module_fini_fn)(const struct modinfo *); |
16 | int rump_kernelfsym_load(void *, uint64_t, char *, uint64_t); |
17 | typedef int (*rump_kernelfsym_load_fn)(void *, uint64_t, char *, uint64_t); |
18 | struct uio * rump_uio_setup(void *, size_t, off_t, enum rump_uiorw); |
19 | typedef struct uio * (*rump_uio_setup_fn)(void *, size_t, off_t, enum rump_uiorw); |
20 | size_t rump_uio_getresid(struct uio *); |
21 | typedef size_t (*rump_uio_getresid_fn)(struct uio *); |
22 | off_t rump_uio_getoff(struct uio *); |
23 | typedef off_t (*rump_uio_getoff_fn)(struct uio *); |
24 | size_t rump_uio_free(struct uio *); |
25 | typedef size_t (*rump_uio_free_fn)(struct uio *); |
26 | struct kauth_cred* rump_cred_create(uid_t, gid_t, size_t, gid_t *); |
27 | typedef struct kauth_cred* (*rump_cred_create_fn)(uid_t, gid_t, size_t, gid_t *); |
28 | void rump_cred_put(struct kauth_cred *); |
29 | typedef void (*rump_cred_put_fn)(struct kauth_cred *); |
30 | int rump_lwproc_rfork(int); |
31 | typedef int (*rump_lwproc_rfork_fn)(int); |
32 | int rump_lwproc_newlwp(pid_t); |
33 | typedef int (*rump_lwproc_newlwp_fn)(pid_t); |
34 | void rump_lwproc_switch(struct lwp *); |
35 | typedef void (*rump_lwproc_switch_fn)(struct lwp *); |
36 | void rump_lwproc_releaselwp(void); |
37 | typedef void (*rump_lwproc_releaselwp_fn)(void); |
38 | struct lwp * rump_lwproc_curlwp(void); |
39 | typedef struct lwp * (*rump_lwproc_curlwp_fn)(void); |
40 | void rump_lwproc_sysent_usenative(void); |
41 | typedef void (*rump_lwproc_sysent_usenative_fn)(void); |
42 | void rump_allbetsareoff_setid(pid_t, int); |
43 | typedef void (*rump_allbetsareoff_setid_fn)(pid_t, int); |
44 | int rump_etfs_register(const char *, const char *, enum rump_etfs_type); |
45 | typedef int (*rump_etfs_register_fn)(const char *, const char *, enum rump_etfs_type); |
46 | int rump_etfs_register_withsize(const char *, const char *, enum rump_etfs_type, uint64_t, uint64_t); |
47 | typedef int (*rump_etfs_register_withsize_fn)(const char *, const char *, enum rump_etfs_type, uint64_t, uint64_t); |
48 | int rump_etfs_remove(const char *); |
49 | typedef int (*rump_etfs_remove_fn)(const char *); |
50 | |
51 | #endif /* _RUMP_PRIF_KERN_H_ */ |
52 | |