-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproto.h
83 lines (68 loc) · 2.72 KB
/
proto.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* dentry.c */
_PROTOTYPE( void init_dentry, (void) );
_PROTOTYPE( struct inode *lookup_dentry, (struct inode *parent,
char *name) );
_PROTOTYPE( void add_dentry, (struct inode *parent, char *name,
struct inode *ino) );
_PROTOTYPE( void del_dentry, (struct inode *ino) );
/* handle.c */
_PROTOTYPE( int get_handle, (struct inode *ino) );
_PROTOTYPE( void put_handle, (struct inode *ino) );
/* inode.c */
_PROTOTYPE( struct inode *init_inode, (void) );
_PROTOTYPE( struct inode *find_inode, (ino_t ino_nr) );
_PROTOTYPE( void get_inode, (struct inode *ino) );
_PROTOTYPE( void put_inode, (struct inode *ino) );
_PROTOTYPE( void link_inode, (struct inode *parent, struct inode *ino) );
_PROTOTYPE( void unlink_inode, (struct inode *ino) );
_PROTOTYPE( struct inode *get_free_inode, (void) );
_PROTOTYPE( int have_free_inode, (void) );
_PROTOTYPE( int have_used_inode, (void) );
_PROTOTYPE( int do_putnode, (void) );
/* link.c */
_PROTOTYPE( int do_create, (void) );
_PROTOTYPE( int do_mkdir, (void) );
_PROTOTYPE( int do_unlink, (void) );
_PROTOTYPE( int do_rmdir, (void) );
_PROTOTYPE( int do_rename, (void) );
/* lookup.c */
_PROTOTYPE( int do_lookup, (void) );
/* main.c */
_PROTOTYPE( int main, (int argc, char *argv[]) );
/* misc.c */
_PROTOTYPE( int do_fstatfs, (void) );
_PROTOTYPE( int do_statvfs, (void) );
/* mount.c */
_PROTOTYPE( int do_readsuper, (void) );
_PROTOTYPE( int do_unmount, (void) );
/* name.c */
_PROTOTYPE( void normalize_name, (char dst[NAME_MAX+1], char *src) );
_PROTOTYPE( int compare_name, (char *name1, char *name2) );
/* path.c */
_PROTOTYPE( int make_path, (char path[PATH_MAX], struct inode *ino) );
_PROTOTYPE( int push_path, (char path[PATH_MAX], char *name) );
_PROTOTYPE( void pop_path, (char path[PATH_MAX]) );
/* read.c */
_PROTOTYPE( int do_read, (void) );
_PROTOTYPE( int do_getdents, (void) );
/* stat.c */
_PROTOTYPE( mode_t get_mode, (struct inode *ino, int mode) );
_PROTOTYPE( int do_stat, (void) );
_PROTOTYPE( int do_chmod, (void) );
_PROTOTYPE( int do_utime, (void) );
/* util.c */
_PROTOTYPE( int get_name, (cp_grant_id_t grant, size_t len,
char name[NAME_MAX+1]) );
_PROTOTYPE( int do_noop, (void) );
_PROTOTYPE( int no_sys, (void) );
/* verify.c */
_PROTOTYPE( int verify_path, (char *path, struct inode *ino,
struct hgfs_attr *attr, int *stale) );
_PROTOTYPE( int verify_inode, (struct inode *ino, char path[PATH_MAX],
struct hgfs_attr *attr) );
_PROTOTYPE( int verify_dentry, (struct inode *parent,
char name[NAME_MAX+1], char path[PATH_MAX],
struct inode **res_ino) );
/* write.c */
_PROTOTYPE( int do_write, (void) );
_PROTOTYPE( int do_ftrunc, (void) );