]>
Commit | Line | Data |
---|---|---|
9490c148 | 1 | #ifndef _SPL_KOBJ_H |
2 | #define _SPL_KOBJ_H | |
3 | ||
4 | #ifdef __cplusplus | |
5 | extern "C" { | |
6 | #endif | |
7 | ||
4b171585 | 8 | #include <sys/vnode.h> |
9490c148 | 9 | |
10 | typedef struct _buf { | |
4b171585 | 11 | vnode_t *vp; |
9490c148 | 12 | } _buf_t; |
13 | ||
73e540a0 | 14 | typedef struct _buf buf_t; |
15 | ||
9490c148 | 16 | extern struct _buf *kobj_open_file(const char *name); |
17 | extern void kobj_close_file(struct _buf *file); | |
18 | extern int kobj_read_file(struct _buf *file, char *buf, | |
4b171585 | 19 | ssize_t size, offset_t off); |
9490c148 | 20 | extern int kobj_get_filesize(struct _buf *file, uint64_t *size); |
21 | ||
22 | #ifdef __cplusplus | |
23 | } | |
24 | #endif | |
25 | ||
26 | #endif /* SPL_KOBJ_H */ |