]> git.proxmox.com Git - mirror_spl.git/blame - include/sys/kobj.h
Prep for for 0.3.0 tag, this is the tag which was used for all
[mirror_spl.git] / include / sys / kobj.h
CommitLineData
9490c148 1#ifndef _SPL_KOBJ_H
2#define _SPL_KOBJ_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
4b171585 8#include <sys/vnode.h>
9490c148 9
10typedef struct _buf {
4b171585 11 vnode_t *vp;
9490c148 12} _buf_t;
13
73e540a0 14typedef struct _buf buf_t;
15
9490c148 16extern struct _buf *kobj_open_file(const char *name);
17extern void kobj_close_file(struct _buf *file);
18extern int kobj_read_file(struct _buf *file, char *buf,
4b171585 19 ssize_t size, offset_t off);
9490c148 20extern int kobj_get_filesize(struct _buf *file, uint64_t *size);
21
22#ifdef __cplusplus
23}
24#endif
25
26#endif /* SPL_KOBJ_H */