00001
00002
00003
00004 struct buf;
00005 struct filp;
00006 struct inode;
00007 struct super_block;
00008
00009
00010
00011 _PROTOTYPE( zone_t alloc_zone, (Dev_t dev, zone_t z) );
00012 _PROTOTYPE( void buf_pool, (void) );
00013 _PROTOTYPE( void flushall, (Dev_t dev) );
00014 _PROTOTYPE( void free_zone, (Dev_t dev, zone_t numb) );
00015 _PROTOTYPE( struct buf *get_block, (Dev_t dev, block_t block,int only_search));
00016 _PROTOTYPE( void invalidate, (Dev_t device) );
00017 _PROTOTYPE( void put_block, (struct buf *bp, int block_type) );
00018 _PROTOTYPE( void set_blocksize, (int blocksize) );
00019 _PROTOTYPE( void rw_scattered, (Dev_t dev,
00020 struct buf **bufq, int bufqsize, int rw_flag) );
00021
00022
00023 _PROTOTYPE( int block_dev_io, (int op, Dev_t dev, int proc, void *buf,
00024 u64_t pos, int bytes, int flags) );
00025 _PROTOTYPE( int dev_open, (endpoint_t driver_e, Dev_t dev, int proc,
00026 int flags) );
00027 _PROTOTYPE( void dev_close, (endpoint_t driver_e, Dev_t dev) );
00028 _PROTOTYPE( int fs_clone_opcl, (void) );
00029 _PROTOTYPE( int fs_new_driver, (void) );
00030
00031
00032 _PROTOTYPE( struct inode *alloc_inode, (dev_t dev, mode_t bits) );
00033 _PROTOTYPE( void dup_inode, (struct inode *ip) );
00034 _PROTOTYPE( struct inode *find_inode, (Dev_t dev, int numb) );
00035 _PROTOTYPE( void free_inode, (Dev_t dev, Ino_t numb) );
00036 _PROTOTYPE( int fs_getnode, (void) );
00037 _PROTOTYPE( int fs_putnode, (void) );
00038 _PROTOTYPE( void init_inode_cache, (void) );
00039 _PROTOTYPE( struct inode *get_inode, (Dev_t dev, int numb) );
00040 _PROTOTYPE( void put_inode, (struct inode *rip) );
00041 _PROTOTYPE( void update_times, (struct inode *rip) );
00042 _PROTOTYPE( void rw_inode, (struct inode *rip, int rw_flag) );
00043 _PROTOTYPE( void wipe_inode, (struct inode *rip) );
00044
00045
00046 _PROTOTYPE( int freesp_inode, (struct inode *rip, off_t st, off_t end) );
00047 _PROTOTYPE( int fs_ftrunc, (void) );
00048 _PROTOTYPE( int fs_link, (void) );
00049 _PROTOTYPE( int fs_rdlink, (void) );
00050 _PROTOTYPE( int fs_rename, (void) );
00051 _PROTOTYPE( int fs_unlink, (void) );
00052 _PROTOTYPE( int truncate_inode, (struct inode *rip, off_t len) );
00053
00054
00055 _PROTOTYPE( void reply, (int who, message *m_out) );
00056
00057
00058 _PROTOTYPE( int fs_flush, (void) );
00059 _PROTOTYPE( int fs_sync, (void) );
00060
00061
00062 _PROTOTYPE( int fs_mountpoint, (void) );
00063 _PROTOTYPE( int fs_readsuper, (void) );
00064 _PROTOTYPE( int fs_unmount, (void) );
00065
00066
00067 _PROTOTYPE( int fs_create, (void) );
00068 _PROTOTYPE( int fs_inhibread, (void) );
00069 _PROTOTYPE( int fs_mkdir, (void) );
00070 _PROTOTYPE( int fs_mknod, (void) );
00071 _PROTOTYPE( int fs_newnode, (void) );
00072 _PROTOTYPE( int fs_slink, (void) );
00073
00074
00075 _PROTOTYPE( int fs_lookup, (void) );
00076 _PROTOTYPE( struct inode *advance, (struct inode *dirp,
00077 char string[NAME_MAX], int chk_perm) );
00078 _PROTOTYPE( int search_dir, (struct inode *ldir_ptr,
00079 char string [NAME_MAX], ino_t *numb, int flag,
00080 int check_permissions) );
00081
00082
00083
00084 _PROTOTYPE( int fs_chmod, (void) );
00085 _PROTOTYPE( int fs_chown, (void) );
00086 _PROTOTYPE( int fs_getdents, (void) );
00087 _PROTOTYPE( int forbidden, (struct inode *rip, mode_t access_desired) );
00088 _PROTOTYPE( int read_only, (struct inode *ip) );
00089
00090
00091 _PROTOTYPE( int fs_breadwrite, (void) );
00092 _PROTOTYPE( int fs_readwrite, (void) );
00093 _PROTOTYPE( struct buf *rahead, (struct inode *rip, block_t baseblock,
00094 u64_t position, unsigned bytes_ahead) );
00095 _PROTOTYPE( void read_ahead, (void) );
00096 _PROTOTYPE( block_t read_map, (struct inode *rip, off_t pos) );
00097 _PROTOTYPE( int read_write, (int rw_flag) );
00098 _PROTOTYPE( zone_t rd_indir, (struct buf *bp, int index) );
00099
00100
00101 _PROTOTYPE( int fs_fstatfs, (void) );
00102 _PROTOTYPE( int fs_stat, (void) );
00103
00104
00105 _PROTOTYPE( bit_t alloc_bit, (struct super_block *sp, int map, bit_t origin));
00106 _PROTOTYPE( void free_bit, (struct super_block *sp, int map,
00107 bit_t bit_returned) );
00108 _PROTOTYPE( int get_block_size, (dev_t dev) );
00109 _PROTOTYPE( struct super_block *get_super, (Dev_t dev) );
00110 _PROTOTYPE( int mounted, (struct inode *rip) );
00111 _PROTOTYPE( int read_super, (struct super_block *sp) );
00112
00113
00114 _PROTOTYPE( int fs_utime, (void) );
00115
00116
00117 _PROTOTYPE( time_t clock_time, (void) );
00118 _PROTOTYPE( unsigned conv2, (int norm, int w) );
00119 _PROTOTYPE( long conv4, (int norm, long x) );
00120 _PROTOTYPE( int fetch_name, (char *path, int len, int flag) );
00121 _PROTOTYPE( void mfs_nul_f, (char *file, int line, char *str, int len,
00122 int maxlen) );
00123 _PROTOTYPE( int mfs_min_f, (char *file, int line, int len1, int len2) );
00124 _PROTOTYPE( int no_sys, (void) );
00125 _PROTOTYPE( int isokendpt_f, (char *f, int l, int e, int *p, int ft));
00126 _PROTOTYPE( void sanitycheck, (char *file, int line) );
00127 #define SANITYCHECK sanitycheck(__FILE__, __LINE__)
00128
00129
00130 _PROTOTYPE( void clear_zone, (struct inode *rip, off_t pos, int flag) );
00131 _PROTOTYPE( struct buf *new_block, (struct inode *rip, off_t position) );
00132 _PROTOTYPE( void zero_block, (struct buf *bp) );
00133 _PROTOTYPE( int write_map, (struct inode *, off_t, zone_t, int) );
00134