source: branches/minix3-book/servers/fs/proto.h@ 25

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

Importazione sorgenti libro

File size: 7.2 KB
RevLine 
[4]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_block, (struct buf *bp, int rw_flag) );
19_PROTOTYPE( void rw_scattered, (Dev_t dev,
20 struct buf **bufq, int bufqsize, int rw_flag) );
21
22/* device.c */
23_PROTOTYPE( int dev_open, (Dev_t dev, int proc, int flags) );
24_PROTOTYPE( void dev_close, (Dev_t dev) );
25_PROTOTYPE( int dev_io, (int op, Dev_t dev, int proc, void *buf,
26 off_t pos, int bytes, int flags) );
27_PROTOTYPE( int gen_opcl, (int op, Dev_t dev, int proc, int flags) );
28_PROTOTYPE( void gen_io, (int task_nr, message *mess_ptr) );
29_PROTOTYPE( int no_dev, (int op, Dev_t dev, int proc, int flags) );
30_PROTOTYPE( int tty_opcl, (int op, Dev_t dev, int proc, int flags) );
31_PROTOTYPE( int ctty_opcl, (int op, Dev_t dev, int proc, int flags) );
32_PROTOTYPE( int clone_opcl, (int op, Dev_t dev, int proc, int flags) );
33_PROTOTYPE( void ctty_io, (int task_nr, message *mess_ptr) );
34_PROTOTYPE( int do_ioctl, (void) );
35_PROTOTYPE( int do_setsid, (void) );
36_PROTOTYPE( void dev_status, (message *) );
37
38/* dmp.c */
39_PROTOTYPE( int do_fkey_pressed, (void) );
40
41/* dmap.c */
42_PROTOTYPE( int do_devctl, (void) );
43_PROTOTYPE( void build_dmap, (void) );
44_PROTOTYPE( int map_driver, (int major, int proc_nr, int dev_style) );
45
46/* filedes.c */
47_PROTOTYPE( struct filp *find_filp, (struct inode *rip, mode_t bits) );
48_PROTOTYPE( int get_fd, (int start, mode_t bits, int *k, struct filp **fpt) );
49_PROTOTYPE( struct filp *get_filp, (int fild) );
50
51/* inode.c */
52_PROTOTYPE( struct inode *alloc_inode, (dev_t dev, mode_t bits) );
53_PROTOTYPE( void dup_inode, (struct inode *ip) );
54_PROTOTYPE( void free_inode, (Dev_t dev, Ino_t numb) );
55_PROTOTYPE( struct inode *get_inode, (Dev_t dev, int numb) );
56_PROTOTYPE( void put_inode, (struct inode *rip) );
57_PROTOTYPE( void update_times, (struct inode *rip) );
58_PROTOTYPE( void rw_inode, (struct inode *rip, int rw_flag) );
59_PROTOTYPE( void wipe_inode, (struct inode *rip) );
60
61/* link.c */
62_PROTOTYPE( int do_link, (void) );
63_PROTOTYPE( int do_unlink, (void) );
64_PROTOTYPE( int do_rename, (void) );
65_PROTOTYPE( void truncate, (struct inode *rip) );
66
67/* lock.c */
68_PROTOTYPE( int lock_op, (struct filp *f, int req) );
69_PROTOTYPE( void lock_revive, (void) );
70
71/* main.c */
72_PROTOTYPE( int main, (void) );
73_PROTOTYPE( void reply, (int whom, int result) );
74
75/* misc.c */
76_PROTOTYPE( int do_dup, (void) );
77_PROTOTYPE( int do_exit, (void) );
78_PROTOTYPE( int do_fcntl, (void) );
79_PROTOTYPE( int do_fork, (void) );
80_PROTOTYPE( int do_exec, (void) );
81_PROTOTYPE( int do_revive, (void) );
82_PROTOTYPE( int do_set, (void) );
83_PROTOTYPE( int do_sync, (void) );
84_PROTOTYPE( int do_fsync, (void) );
85_PROTOTYPE( int do_reboot, (void) );
86_PROTOTYPE( int do_svrctl, (void) );
87_PROTOTYPE( int do_getsysinfo, (void) );
88
89/* mount.c */
90_PROTOTYPE( int do_mount, (void) );
91_PROTOTYPE( int do_umount, (void) );
92_PROTOTYPE( int unmount, (Dev_t dev) );
93
94/* open.c */
95_PROTOTYPE( int do_close, (void) );
96_PROTOTYPE( int do_creat, (void) );
97_PROTOTYPE( int do_lseek, (void) );
98_PROTOTYPE( int do_mknod, (void) );
99_PROTOTYPE( int do_mkdir, (void) );
100_PROTOTYPE( int do_open, (void) );
101
102/* path.c */
103_PROTOTYPE( struct inode *advance,(struct inode *dirp, char string[NAME_MAX]));
104_PROTOTYPE( int search_dir, (struct inode *ldir_ptr,
105 char string [NAME_MAX], ino_t *numb, int flag) );
106_PROTOTYPE( struct inode *eat_path, (char *path) );
107_PROTOTYPE( struct inode *last_dir, (char *path, char string [NAME_MAX]));
108
109/* pipe.c */
110_PROTOTYPE( int do_pipe, (void) );
111_PROTOTYPE( int do_unpause, (void) );
112_PROTOTYPE( int pipe_check, (struct inode *rip, int rw_flag,
113 int oflags, int bytes, off_t position, int *canwrite, int notouch));
114_PROTOTYPE( void release, (struct inode *ip, int call_nr, int count) );
115_PROTOTYPE( void revive, (int proc_nr, int bytes) );
116_PROTOTYPE( void suspend, (int task) );
117_PROTOTYPE( int select_request_pipe, (struct filp *f, int *ops, int bl) );
118_PROTOTYPE( int select_cancel_pipe, (struct filp *f) );
119_PROTOTYPE( int select_match_pipe, (struct filp *f) );
120
121/* protect.c */
122_PROTOTYPE( int do_access, (void) );
123_PROTOTYPE( int do_chmod, (void) );
124_PROTOTYPE( int do_chown, (void) );
125_PROTOTYPE( int do_umask, (void) );
126_PROTOTYPE( int forbidden, (struct inode *rip, mode_t access_desired) );
127_PROTOTYPE( int read_only, (struct inode *ip) );
128
129/* read.c */
130_PROTOTYPE( int do_read, (void) );
131_PROTOTYPE( struct buf *rahead, (struct inode *rip, block_t baseblock,
132 off_t position, unsigned bytes_ahead) );
133_PROTOTYPE( void read_ahead, (void) );
134_PROTOTYPE( block_t read_map, (struct inode *rip, off_t position) );
135_PROTOTYPE( int read_write, (int rw_flag) );
136_PROTOTYPE( zone_t rd_indir, (struct buf *bp, int index) );
137
138/* stadir.c */
139_PROTOTYPE( int do_chdir, (void) );
140_PROTOTYPE( int do_fchdir, (void) );
141_PROTOTYPE( int do_chroot, (void) );
142_PROTOTYPE( int do_fstat, (void) );
143_PROTOTYPE( int do_stat, (void) );
144_PROTOTYPE( int do_fstatfs, (void) );
145
146/* super.c */
147_PROTOTYPE( bit_t alloc_bit, (struct super_block *sp, int map, bit_t origin));
148_PROTOTYPE( void free_bit, (struct super_block *sp, int map,
149 bit_t bit_returned) );
150_PROTOTYPE( struct super_block *get_super, (Dev_t dev) );
151_PROTOTYPE( int mounted, (struct inode *rip) );
152_PROTOTYPE( int read_super, (struct super_block *sp) );
153_PROTOTYPE( int get_block_size, (dev_t dev) );
154
155/* time.c */
156_PROTOTYPE( int do_stime, (void) );
157_PROTOTYPE( int do_utime, (void) );
158
159/* utility.c */
160_PROTOTYPE( time_t clock_time, (void) );
161_PROTOTYPE( unsigned conv2, (int norm, int w) );
162_PROTOTYPE( long conv4, (int norm, long x) );
163_PROTOTYPE( int fetch_name, (char *path, int len, int flag) );
164_PROTOTYPE( int no_sys, (void) );
165_PROTOTYPE( void panic, (char *who, char *mess, int num) );
166
167/* write.c */
168_PROTOTYPE( void clear_zone, (struct inode *rip, off_t pos, int flag) );
169_PROTOTYPE( int do_write, (void) );
170_PROTOTYPE( struct buf *new_block, (struct inode *rip, off_t position) );
171_PROTOTYPE( void zero_block, (struct buf *bp) );
172
173/* select.c */
174_PROTOTYPE( int do_select, (void) );
175_PROTOTYPE( int select_callback, (struct filp *, int ops) );
176_PROTOTYPE( void select_forget, (int fproc) );
177_PROTOTYPE( void select_timeout_check, (timer_t *) );
178_PROTOTYPE( void init_select, (void) );
179_PROTOTYPE( int select_notified, (int major, int minor, int ops) );
180
181/* timers.c */
182_PROTOTYPE( void fs_set_timer, (timer_t *tp, int delta, tmr_func_t watchdog, int arg));
183_PROTOTYPE( void fs_expire_timers, (clock_t now) );
184_PROTOTYPE( void fs_cancel_timer, (timer_t *tp) );
185_PROTOTYPE( void fs_init_timer, (timer_t *tp) );
186
187/* cdprobe.c */
188_PROTOTYPE( int cdprobe, (void) );
Note: See TracBrowser for help on using the repository browser.