mirror_zfs/include/sys/kobj.h
behlendo 4b17158506 - Implemented vnode interfaces and 6 test cases to the test suite.
- Re-implmented kobj support based on the vnode support.
- Add TESTS option to check.sh, and removed delay after module load.



git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@39 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
2008-03-12 20:52:46 +00:00

25 lines
465 B
C

#ifndef _SPL_KOBJ_H
#define _SPL_KOBJ_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/vnode.h>
typedef struct _buf {
vnode_t *vp;
} _buf_t;
extern struct _buf *kobj_open_file(const char *name);
extern void kobj_close_file(struct _buf *file);
extern int kobj_read_file(struct _buf *file, char *buf,
ssize_t size, offset_t off);
extern int kobj_get_filesize(struct _buf *file, uint64_t *size);
#ifdef __cplusplus
}
#endif
#endif /* SPL_KOBJ_H */