1 #ifndef _PROCFS_PROTO_H
2 #define _PROCFS_PROTO_H
5 void buf_init(off_t start
, size_t len
);
6 void buf_printf(char *fmt
, ...);
7 void buf_append(char *data
, size_t len
);
8 size_t buf_get(char **ptr
);
12 int lookup_hook(struct inode
*parent
, char *name
, cbdata_t cbdata
);
13 int getdents_hook(struct inode
*inode
, cbdata_t cbdata
);
14 int read_hook(struct inode
*inode
, off_t offset
, char **ptr
, size_t
15 *len
, cbdata_t cbdata
);
16 int rdlink_hook(struct inode
*inode
, char *ptr
, size_t max
, cbdata_t
20 int procfs_getloadavg(struct load
*loadavg
, int nelem
);
22 #endif /* _PROCFS_PROTO_H */