FreeBSD/Linux Kernel Cross Reference
sys/servers/fs/proto.h
1 /* Function prototypes. */
2
3 #include "timers.h"
4
5 /* Structs used in prototypes must be declared as such first. */
6 struct buf;
7 struct filp;
8 struct inode;
9 struct super_block;
10
11 /* cache.c */
12 _PROTOTYPE( zone_t alloc_zone, (Dev_t dev, zone_t z) );
13 _PROTOTYPE( void flushall, (Dev_t dev) );
14 _PROTOTYPE( void free_zone, (Dev_t dev, zone_t numb) );
15 _PROTOTYPE( struct buf *get_block, (Dev_t dev, block_t block,int only_search));
16 _PROTOTYPE( void invalidate, (Dev_t device) );
17 _PROTOTYPE( void put_block, (struct buf *bp, int block_type) );
18 _PROTOTYPE( void rw_scattered, (Dev_t dev,
19 struct buf **bufq, int bufqsize, int rw_flag) );
20
21 #if ENABLE_CACHE2
22 /* cache2.c */
23 _PROTOTYPE( void init_cache2, (unsigned long size) );
24 _PROTOTYPE( int get_block2, (struct buf *bp, int only_search) );
25 _PROTOTYPE( void put_block2, (struct buf *bp) );
26 _PROTOTYPE( void invalidate2, (Dev_t device) );
27 #endif
28
29 /* device.c */
30 _PROTOTYPE( int dev_open, (Dev_t dev, int proc, int flags) );
31 _PROTOTYPE( void dev_close, (Dev_t dev) );
32 _PROTOTYPE( int dev_io, (int op, Dev_t dev, int proc, void *buf,
33 off_t pos, int bytes, int flags) );
34 _PROTOTYPE( int gen_opcl, (int op, Dev_t dev, int proc, int flags) );
35 _PROTOTYPE( void gen_io, (int task_nr, message *mess_ptr) );
36 _PROTOTYPE( int no_dev, (int op, Dev_t dev, int proc, int flags) );
37 _PROTOTYPE( void no_dev_io, (int, message *) );
38 _PROTOTYPE( int tty_opcl, (int op, Dev_t dev, int proc, int flags) );
39 _PROTOTYPE( int ctty_opcl, (int op, Dev_t dev, int proc, int flags) );
40 _PROTOTYPE( int clone_opcl, (int op, Dev_t dev, int proc, int flags) );
41 _PROTOTYPE( void ctty_io, (int task_nr, message *mess_ptr) );
42 _PROTOTYPE( int do_ioctl, (void) );
43 _PROTOTYPE( int do_setsid, (void) );
44 _PROTOTYPE( void dev_status, (message *) );
45 _PROTOTYPE( void dev_up, (int major) );
46
47 /* dmp.c */
48 _PROTOTYPE( int do_fkey_pressed, (void) );
49
50 /* dmap.c */
51 _PROTOTYPE( int do_devctl, (void) );
52 _PROTOTYPE( void build_dmap, (void) );
53 _PROTOTYPE( int map_driver, (int major, int proc_nr, int dev_style) );
54 _PROTOTYPE( int dmap_driver_match, (int proc, int major) );
55 _PROTOTYPE( void dmap_unmap_by_proc, (int proc_nr) );
56 _PROTOTYPE( void dmap_proc_up, (int proc_nr) );
57
58 /* filedes.c */
59 _PROTOTYPE( struct filp *find_filp, (struct inode *rip, mode_t bits) );
60 _PROTOTYPE( int get_fd, (int start, mode_t bits, int *k, struct filp **fpt) );
61 _PROTOTYPE( struct filp *get_filp, (int fild) );
62
63 /* inode.c */
64 _PROTOTYPE( struct inode *alloc_inode, (dev_t dev, mode_t bits) );
65 _PROTOTYPE( void dup_inode, (struct inode *ip) );
66 _PROTOTYPE( void free_inode, (Dev_t dev, Ino_t numb) );
67 _PROTOTYPE( struct inode *get_inode, (Dev_t dev, int numb) );
68 _PROTOTYPE( void put_inode, (struct inode *rip) );
69 _PROTOTYPE( void update_times, (struct inode *rip) );
70 _PROTOTYPE( void rw_inode, (struct inode *rip, int rw_flag) );
71 _PROTOTYPE( void wipe_inode, (struct inode *rip) );
72
73 /* link.c */
74 _PROTOTYPE( int do_link, (void) );
75 _PROTOTYPE( int do_unlink, (void) );
76 _PROTOTYPE( int do_rename, (void) );
77 _PROTOTYPE( void truncate, (struct inode *rip) );
78
79 /* lock.c */
80 _PROTOTYPE( int lock_op, (struct filp *f, int req) );
81 _PROTOTYPE( void lock_revive, (void) );
82
83 /* main.c */
84 _PROTOTYPE( int main, (void) );
85 _PROTOTYPE( void reply, (int whom, int result) );
86
87 /* misc.c */
88 _PROTOTYPE( int do_dup, (void) );
89 _PROTOTYPE( int do_exit, (void) );
90 _PROTOTYPE( int do_fcntl, (void) );
91 _PROTOTYPE( int do_fork, (void) );
92 _PROTOTYPE( int do_exec, (void) );
93 _PROTOTYPE( int do_revive, (void) );
94 _PROTOTYPE( int do_set, (void) );
95 _PROTOTYPE( int do_sync, (void) );
96 _PROTOTYPE( int do_fsync, (void) );
97 _PROTOTYPE( int do_reboot, (void) );
98 _PROTOTYPE( int do_svrctl, (void) );
99 _PROTOTYPE( int do_getsysinfo, (void) );
100
101 /* mount.c */
102 _PROTOTYPE( int do_mount, (void) );
103 _PROTOTYPE( int do_umount, (void) );
104 _PROTOTYPE( int unmount, (Dev_t dev) );
105
106 /* open.c */
107 _PROTOTYPE( int do_close, (void) );
108 _PROTOTYPE( int do_creat, (void) );
109 _PROTOTYPE( int do_lseek, (void) );
110 _PROTOTYPE( int do_mknod, (void) );
111 _PROTOTYPE( int do_mkdir, (void) );
112 _PROTOTYPE( int do_open, (void) );
113
114 /* path.c */
115 _PROTOTYPE( struct inode *advance,(struct inode *dirp, char string[NAME_MAX]));
116 _PROTOTYPE( int search_dir, (struct inode *ldir_ptr,
117 char string [NAME_MAX], ino_t *numb, int flag) );
118 _PROTOTYPE( struct inode *eat_path, (char *path) );
119 _PROTOTYPE( struct inode *last_dir, (char *path, char string [NAME_MAX]));
120
121 /* pipe.c */
122 _PROTOTYPE( int do_pipe, (void) );
123 _PROTOTYPE( int do_unpause, (void) );
124 _PROTOTYPE( int pipe_check, (struct inode *rip, int rw_flag,
125 int oflags, int bytes, off_t position, int *canwrite, int notouch));
126 _PROTOTYPE( void release, (struct inode *ip, int call_nr, int count) );
127 _PROTOTYPE( void revive, (int proc_nr, int bytes) );
128 _PROTOTYPE( void suspend, (int task) );
129 _PROTOTYPE( int select_request_pipe, (struct filp *f, int *ops, int bl) );
130 _PROTOTYPE( int select_cancel_pipe, (struct filp *f) );
131 _PROTOTYPE( int select_match_pipe, (struct filp *f) );
132 _PROTOTYPE( void unsuspend_by_proc, (int) );
133
134 /* protect.c */
135 _PROTOTYPE( int do_access, (void) );
136 _PROTOTYPE( int do_chmod, (void) );
137 _PROTOTYPE( int do_chown, (void) );
138 _PROTOTYPE( int do_umask, (void) );
139 _PROTOTYPE( int forbidden, (struct inode *rip, mode_t access_desired) );
140 _PROTOTYPE( int read_only, (struct inode *ip) );
141
142 /* read.c */
143 _PROTOTYPE( int do_read, (void) );
144 _PROTOTYPE( struct buf *rahead, (struct inode *rip, block_t baseblock,
145 off_t position, unsigned bytes_ahead) );
146 _PROTOTYPE( void read_ahead, (void) );
147 _PROTOTYPE( block_t read_map, (struct inode *rip, off_t position) );
148 _PROTOTYPE( int read_write, (int rw_flag) );
149 _PROTOTYPE( zone_t rd_indir, (struct buf *bp, int index) );
150
151 /* stadir.c */
152 _PROTOTYPE( int do_chdir, (void) );
153 _PROTOTYPE( int do_fchdir, (void) );
154 _PROTOTYPE( int do_chroot, (void) );
155 _PROTOTYPE( int do_fstat, (void) );
156 _PROTOTYPE( int do_stat, (void) );
157 _PROTOTYPE( int do_fstatfs, (void) );
158
159 /* super.c */
160 _PROTOTYPE( bit_t alloc_bit, (struct super_block *sp, int map, bit_t origin));
161 _PROTOTYPE( void free_bit, (struct super_block *sp, int map,
162 bit_t bit_returned) );
163 _PROTOTYPE( struct super_block *get_super, (Dev_t dev) );
164 _PROTOTYPE( int mounted, (struct inode *rip) );
165 _PROTOTYPE( int read_super, (struct super_block *sp) );
166 _PROTOTYPE( int get_block_size, (dev_t dev) );
167
168 /* time.c */
169 _PROTOTYPE( int do_stime, (void) );
170 _PROTOTYPE( int do_utime, (void) );
171
172 /* utility.c */
173 _PROTOTYPE( time_t clock_time, (void) );
174 _PROTOTYPE( unsigned conv2, (int norm, int w) );
175 _PROTOTYPE( long conv4, (int norm, long x) );
176 _PROTOTYPE( int fetch_name, (char *path, int len, int flag) );
177 _PROTOTYPE( int no_sys, (void) );
178 _PROTOTYPE( void panic, (char *who, char *mess, int num) );
179
180 /* write.c */
181 _PROTOTYPE( void clear_zone, (struct inode *rip, off_t pos, int flag) );
182 _PROTOTYPE( int do_write, (void) );
183 _PROTOTYPE( struct buf *new_block, (struct inode *rip, off_t position) );
184 _PROTOTYPE( void zero_block, (struct buf *bp) );
185
186 /* select.c */
187 _PROTOTYPE( int do_select, (void) );
188 _PROTOTYPE( int select_callback, (struct filp *, int ops) );
189 _PROTOTYPE( void select_forget, (int fproc) );
190 _PROTOTYPE( void select_timeout_check, (timer_t *) );
191 _PROTOTYPE( void init_select, (void) );
192 _PROTOTYPE( void select_unsuspend_by_proc, (int proc) );
193 _PROTOTYPE( int select_notified, (int major, int minor, int ops) );
194
195 /* timers.c */
196 _PROTOTYPE( void fs_set_timer, (timer_t *tp, int delta, tmr_func_t watchdog, int arg));
197 _PROTOTYPE( void fs_expire_timers, (clock_t now) );
198 _PROTOTYPE( void fs_cancel_timer, (timer_t *tp) );
199 _PROTOTYPE( void fs_init_timer, (timer_t *tp) );
200
201 /* cdprobe.c */
202 _PROTOTYPE( int cdprobe, (void) );
Cache object: 9ccc675d3c21796f1c9e55625e43946f
|