xref: /minix/minix/fs/procfs/proto.h (revision 7f5f010b)
1 #ifndef _PROCFS_PROTO_H
2 #define _PROCFS_PROTO_H
3 
4 /* buf.c */
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);
9 
10 /* tree.c */
11 int init_tree(void);
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
17 	cbdata);
18 
19 /* util.c */
20 int procfs_getloadavg(struct load *loadavg, int nelem);
21 
22 #endif /* _PROCFS_PROTO_H */
23