1 /* Function prototypes. */
2
3 /* Structs used in prototypes must be declared as such first. */
4 struct buf;
5 struct filp;
6 struct inode;
7 struct super_block;
8
9 /* cache.c */
10 _PROTOTYPE( zone_t alloc_zone, (Dev_t dev, zone_t z) );
11 _PROTOTYPE( void flushall, (Dev_t dev) );
12 _PROTOTYPE( void free_zone, (Dev_t dev, zone_t numb) );
13 _PROTOTYPE( struct buf *get_block, (Dev_t dev, block_t block,int only_search));
14 _PROTOTYPE( void invalidate, (Dev_t device) );
15 _PROTOTYPE( void put_block, (struct buf *bp, int block_type) );
16 _PROTOTYPE( void rw_block, (struct buf *bp, int rw_flag) );
17 _PROTOTYPE( void rw_scattered, (Dev_t dev,
18 struct buf **bufq, int bufqsize, int rw_flag) );
19
20 #if ENABLE_CACHE2
21 /* cache2.c */
22 _PROTOTYPE( void init_cache2, (unsigned long size) );
23 _PROTOTYPE( int get_block2, (struct buf *bp, int only_search) );
24 _PROTOTYPE( void put_block2, (struct buf *bp) );
25 _PROTOTYPE( void invalidate2, (Dev_t device) );
26 #endif
27
28 /* device.c */
29 _PROTOTYPE( void call_task, (int task_nr, message *mess_ptr) );
30 _PROTOTYPE( void dev_opcl, (int task_nr, message *mess_ptr) );
31 _PROTOTYPE( int dev_io, (int rw_flag, int nonblock, Dev_t dev,
32 off_t pos, int bytes, int proc, char *buff) );
33 _PROTOTYPE( int do_ioctl, (void) );
34 _PROTOTYPE( void no_dev, (int task_nr, message *m_ptr) );
35 _PROTOTYPE( void call_ctty, (int task_nr, message *mess_ptr) );
36 _PROTOTYPE( void tty_open, (int task_nr, message *mess_ptr) );
37 _PROTOTYPE( void ctty_close, (int task_nr, message *mess_ptr) );
38 _PROTOTYPE( void ctty_open, (int task_nr, message *mess_ptr) );
39 _PROTOTYPE( int do_setsid, (void) );
40 #if ENABLE_NETWORKING
41 _PROTOTYPE( void net_open, (int task_nr, message *mess_ptr) );
42 #else
43 #define net_open 0
44 #endif
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( void 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
85 /* mount.c */
86 _PROTOTYPE( int do_mount, (void) );
87 _PROTOTYPE( int do_umount, (void) );
88
89 /* open.c */
90 _PROTOTYPE( int do_close, (void) );
91 _PROTOTYPE( int do_creat, (void) );
92 _PROTOTYPE( int do_lseek, (void) );
93 _PROTOTYPE( int do_mknod, (void) );
94 _PROTOTYPE( int do_mkdir, (void) );
95 _PROTOTYPE( int do_open, (void) );
96
97 /* path.c */
98 _PROTOTYPE( struct inode *advance,(struct inode *dirp, char string[NAME_MAX]));
99 _PROTOTYPE( int search_dir, (struct inode *ldir_ptr,
100 char string [NAME_MAX], ino_t *numb, int flag) );
101 _PROTOTYPE( struct inode *eat_path, (char *path) );
102 _PROTOTYPE( struct inode *last_dir, (char *path, char string [NAME_MAX]));
103
104 /* pipe.c */
105 _PROTOTYPE( int do_pipe, (void) );
106 _PROTOTYPE( int do_unpause, (void) );
107 _PROTOTYPE( int pipe_check, (struct inode *rip, int rw_flag,
108 int oflags, int bytes, off_t position, int *canwrite));
109 _PROTOTYPE( void release, (struct inode *ip, int call_nr, int count) );
110 _PROTOTYPE( void revive, (int proc_nr, int bytes) );
111 _PROTOTYPE( void suspend, (int task) );
112
113 /* protect.c */
114 _PROTOTYPE( int do_access, (void) );
115 _PROTOTYPE( int do_chmod, (void) );
116 _PROTOTYPE( int do_chown, (void) );
117 _PROTOTYPE( int do_umask, (void) );
118 _PROTOTYPE( int forbidden, (struct inode *rip, Mode_t access_desired) );
119 _PROTOTYPE( int read_only, (struct inode *ip) );
120
121 /* putk.c */
122 _PROTOTYPE( void putk, (int c) );
123
124 /* read.c */
125 _PROTOTYPE( int do_read, (void) );
126 _PROTOTYPE( struct buf *rahead, (struct inode *rip, block_t baseblock,
127 off_t position, unsigned bytes_ahead) );
128 _PROTOTYPE( void read_ahead, (void) );
129 _PROTOTYPE( block_t read_map, (struct inode *rip, off_t position) );
130 _PROTOTYPE( int read_write, (int rw_flag) );
131 _PROTOTYPE( zone_t rd_indir, (struct buf *bp, int index) );
132
133 /* stadir.c */
134 _PROTOTYPE( int do_chdir, (void) );
135 _PROTOTYPE( int do_chroot, (void) );
136 _PROTOTYPE( int do_fstat, (void) );
137 _PROTOTYPE( int do_stat, (void) );
138
139 /* super.c */
140 _PROTOTYPE( bit_t alloc_bit, (struct super_block *sp, int map, bit_t origin));
141 _PROTOTYPE( void free_bit, (struct super_block *sp, int map,
142 bit_t bit_returned) );
143 _PROTOTYPE( struct super_block *get_super, (Dev_t dev) );
144 _PROTOTYPE( int mounted, (struct inode *rip) );
145 _PROTOTYPE( int read_super, (struct super_block *sp) );
146
147 /* time.c */
148 _PROTOTYPE( int do_stime, (void) );
149 _PROTOTYPE( int do_time, (void) );
150 _PROTOTYPE( int do_tims, (void) );
151 _PROTOTYPE( int do_utime, (void) );
152
153 /* utility.c */
154 _PROTOTYPE( time_t clock_time, (void) );
155 _PROTOTYPE( unsigned conv2, (int norm, int w) );
156 _PROTOTYPE( long conv4, (int norm, long x) );
157 _PROTOTYPE( int fetch_name, (char *path, int len, int flag) );
158 _PROTOTYPE( int no_sys, (void) );
159 _PROTOTYPE( void panic, (char *format, int num) );
160
161 /* write.c */
162 _PROTOTYPE( void clear_zone, (struct inode *rip, off_t pos, int flag) );
163 _PROTOTYPE( int do_write, (void) );
164 _PROTOTYPE( struct buf *new_block, (struct inode *rip, off_t position) );
165 _PROTOTYPE( void zero_block, (struct buf *bp) );
166
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.