source: trunk/minix/servers/fs/proto.h@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 8.6 KB
Line 
1/* Function prototypes. */
2
3#include "timers.h"
4
5/* Structs used in prototypes must be declared as such first. */
6struct buf;
7struct filp;
8struct inode;
9struct 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( int gen_io, (int task_nr, message *mess_ptr) );
36_PROTOTYPE( int no_dev, (int op, Dev_t dev, int proc, int flags) );
37_PROTOTYPE( int 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( int 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_endpt, (int proc_nr) );
56_PROTOTYPE( void dmap_endpt_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_PROTOTYPE( int inval_filp, (struct filp *) );
63
64/* inode.c */
65_PROTOTYPE( struct inode *alloc_inode, (dev_t dev, mode_t bits) );
66_PROTOTYPE( void dup_inode, (struct inode *ip) );
67_PROTOTYPE( void free_inode, (Dev_t dev, Ino_t numb) );
68_PROTOTYPE( struct inode *get_inode, (Dev_t dev, int numb) );
69_PROTOTYPE( void put_inode, (struct inode *rip) );
70_PROTOTYPE( void update_times, (struct inode *rip) );
71_PROTOTYPE( void rw_inode, (struct inode *rip, int rw_flag) );
72_PROTOTYPE( void wipe_inode, (struct inode *rip) );
73
74/* link.c */
75_PROTOTYPE( int do_link, (void) );
76_PROTOTYPE( int do_unlink, (void) );
77_PROTOTYPE( int do_rename, (void) );
78_PROTOTYPE( int do_truncate, (void) );
79_PROTOTYPE( int do_ftruncate, (void) );
80_PROTOTYPE( int truncate_inode, (struct inode *rip, off_t len) );
81_PROTOTYPE( int freesp_inode, (struct inode *rip, off_t st, off_t end) );
82
83/* lock.c */
84_PROTOTYPE( int lock_op, (struct filp *f, int req) );
85_PROTOTYPE( void lock_revive, (void) );
86
87/* main.c */
88_PROTOTYPE( int main, (void) );
89_PROTOTYPE( void reply, (int whom, int result) );
90
91/* misc.c */
92_PROTOTYPE( int do_dup, (void) );
93_PROTOTYPE( int do_exit, (void) );
94_PROTOTYPE( int do_fcntl, (void) );
95_PROTOTYPE( int do_fork, (void) );
96_PROTOTYPE( int do_exec, (void) );
97_PROTOTYPE( int do_revive, (void) );
98_PROTOTYPE( int do_set, (void) );
99_PROTOTYPE( int do_sync, (void) );
100_PROTOTYPE( int do_fsync, (void) );
101_PROTOTYPE( int do_reboot, (void) );
102_PROTOTYPE( int do_svrctl, (void) );
103_PROTOTYPE( int do_getsysinfo, (void) );
104
105/* mount.c */
106_PROTOTYPE( int do_mount, (void) );
107_PROTOTYPE( int do_umount, (void) );
108_PROTOTYPE( int unmount, (Dev_t dev) );
109
110/* open.c */
111_PROTOTYPE( int do_close, (void) );
112_PROTOTYPE( int do_creat, (void) );
113_PROTOTYPE( int do_lseek, (void) );
114_PROTOTYPE( int do_mknod, (void) );
115_PROTOTYPE( int do_mkdir, (void) );
116_PROTOTYPE( int do_open, (void) );
117_PROTOTYPE( int do_slink, (void) );
118
119/* path.c */
120_PROTOTYPE( struct inode *advance,(struct inode **dirp, char string[NAME_MAX]));
121_PROTOTYPE( int search_dir, (struct inode *ldir_ptr,
122 char string [NAME_MAX], ino_t *numb, int flag) );
123_PROTOTYPE( struct inode *eat_path, (char *path) );
124_PROTOTYPE( struct inode *last_dir, (char *path, char string [NAME_MAX]));
125_PROTOTYPE( struct inode *parse_path, (char *path, char string[NAME_MAX],
126 int action) );
127
128/* pipe.c */
129_PROTOTYPE( int do_pipe, (void) );
130_PROTOTYPE( int do_unpause, (void) );
131_PROTOTYPE( int pipe_check, (struct inode *rip, int rw_flag,
132 int oflags, int bytes, off_t position, int *canwrite, int notouch));
133_PROTOTYPE( void release, (struct inode *ip, int call_nr, int count) );
134_PROTOTYPE( void revive, (int proc_nr, int bytes) );
135_PROTOTYPE( void suspend, (int task) );
136_PROTOTYPE( int select_request_pipe, (struct filp *f, int *ops, int bl) );
137_PROTOTYPE( int select_cancel_pipe, (struct filp *f) );
138_PROTOTYPE( int select_match_pipe, (struct filp *f) );
139_PROTOTYPE( void unsuspend_by_endpt, (int) );
140
141/* protect.c */
142_PROTOTYPE( int do_access, (void) );
143_PROTOTYPE( int do_chmod, (void) );
144_PROTOTYPE( int do_chown, (void) );
145_PROTOTYPE( int do_umask, (void) );
146_PROTOTYPE( int forbidden, (struct inode *rip, mode_t access_desired) );
147_PROTOTYPE( int read_only, (struct inode *ip) );
148
149/* read.c */
150_PROTOTYPE( int do_read, (void) );
151_PROTOTYPE( struct buf *rahead, (struct inode *rip, block_t baseblock,
152 off_t position, unsigned bytes_ahead) );
153_PROTOTYPE( void read_ahead, (void) );
154_PROTOTYPE( block_t read_map, (struct inode *rip, off_t pos) );
155_PROTOTYPE( int read_write, (int rw_flag) );
156_PROTOTYPE( zone_t rd_indir, (struct buf *bp, int index) );
157
158/* stadir.c */
159_PROTOTYPE( int do_chdir, (void) );
160_PROTOTYPE( int do_fchdir, (void) );
161_PROTOTYPE( int do_chroot, (void) );
162_PROTOTYPE( int do_fstat, (void) );
163_PROTOTYPE( int do_stat, (void) );
164_PROTOTYPE( int do_fstatfs, (void) );
165_PROTOTYPE( int do_rdlink, (void) );
166_PROTOTYPE( int do_lstat, (void) );
167
168/* super.c */
169_PROTOTYPE( bit_t alloc_bit, (struct super_block *sp, int map, bit_t origin));
170_PROTOTYPE( void free_bit, (struct super_block *sp, int map,
171 bit_t bit_returned) );
172_PROTOTYPE( struct super_block *get_super, (Dev_t dev) );
173_PROTOTYPE( int mounted, (struct inode *rip) );
174_PROTOTYPE( int read_super, (struct super_block *sp) );
175_PROTOTYPE( int get_block_size, (dev_t dev) );
176
177/* time.c */
178_PROTOTYPE( int do_stime, (void) );
179_PROTOTYPE( int do_utime, (void) );
180
181/* utility.c */
182_PROTOTYPE( time_t clock_time, (void) );
183_PROTOTYPE( unsigned conv2, (int norm, int w) );
184_PROTOTYPE( long conv4, (int norm, long x) );
185_PROTOTYPE( int fetch_name, (char *path, int len, int flag) );
186_PROTOTYPE( int no_sys, (void) );
187_PROTOTYPE( int isokendpt_f, (char *f, int l, int e, int *p, int ft));
188_PROTOTYPE( void panic, (char *who, char *mess, int num) );
189
190#define okendpt(e, p) isokendpt_f(__FILE__, __LINE__, (e), (p), 1)
191#define isokendpt(e, p) isokendpt_f(__FILE__, __LINE__, (e), (p), 0)
192
193/* write.c */
194_PROTOTYPE( void clear_zone, (struct inode *rip, off_t pos, int flag) );
195_PROTOTYPE( int do_write, (void) );
196_PROTOTYPE( struct buf *new_block, (struct inode *rip, off_t position) );
197_PROTOTYPE( void zero_block, (struct buf *bp) );
198_PROTOTYPE( int write_map, (struct inode *, off_t, zone_t, int) );
199
200/* select.c */
201_PROTOTYPE( int do_select, (void) );
202_PROTOTYPE( int select_callback, (struct filp *, int ops) );
203_PROTOTYPE( void select_forget, (int fproc) );
204_PROTOTYPE( void select_timeout_check, (timer_t *) );
205_PROTOTYPE( void init_select, (void) );
206_PROTOTYPE( void select_unsuspend_by_endpt, (int proc) );
207_PROTOTYPE( int select_notified, (int major, int minor, int ops) );
208
209/* timers.c */
210_PROTOTYPE( void fs_set_timer, (timer_t *tp, int delta, tmr_func_t watchdog, int arg));
211_PROTOTYPE( void fs_expire_timers, (clock_t now) );
212_PROTOTYPE( void fs_cancel_timer, (timer_t *tp) );
213_PROTOTYPE( void fs_init_timer, (timer_t *tp) );
214
215/* cdprobe.c */
216_PROTOTYPE( int cdprobe, (void) );
Note: See TracBrowser for help on using the repository browser.