xref: /minix3/minix/fs/procfs/proto.h (revision 5eefd0fec2bd5bc6ad818ba164bcc653f954426c)
1433d6423SLionel Sambuc #ifndef _PROCFS_PROTO_H
2433d6423SLionel Sambuc #define _PROCFS_PROTO_H
3433d6423SLionel Sambuc 
4433d6423SLionel Sambuc /* buf.c */
5*5eefd0feSDavid van Moolenbroek void buf_init(char *ptr, size_t len, off_t start);
6433d6423SLionel Sambuc void buf_printf(char *fmt, ...);
7433d6423SLionel Sambuc void buf_append(char *data, size_t len);
8*5eefd0feSDavid van Moolenbroek ssize_t buf_result(void);
9433d6423SLionel Sambuc 
10433d6423SLionel Sambuc /* tree.c */
11433d6423SLionel Sambuc int init_tree(void);
12433d6423SLionel Sambuc int lookup_hook(struct inode *parent, char *name, cbdata_t cbdata);
13433d6423SLionel Sambuc int getdents_hook(struct inode *inode, cbdata_t cbdata);
14*5eefd0feSDavid van Moolenbroek ssize_t read_hook(struct inode *inode, char *ptr, size_t len, off_t off,
15*5eefd0feSDavid van Moolenbroek 	cbdata_t cbdata);
16*5eefd0feSDavid van Moolenbroek int rdlink_hook(struct inode *inode, char *ptr, size_t max, cbdata_t cbdata);
17433d6423SLionel Sambuc 
18433d6423SLionel Sambuc /* util.c */
19433d6423SLionel Sambuc int procfs_getloadavg(struct load *loadavg, int nelem);
20433d6423SLionel Sambuc 
21433d6423SLionel Sambuc #endif /* _PROCFS_PROTO_H */
22