imfs.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 557 行 · 第 1/2 页
H
557 行
int avfs_tarfs_load(
char *mountpoint,
unsigned char *addr,
unsigned long length
);
/*
* Returns the number of characters copied from path to token.
*/
IMFS_token_types IMFS_get_token(
const char *path,
char *token,
int *token_len
);
void IMFS_dump( void );
void IMFS_initialize_jnode(
IMFS_jnode_t *the_jnode,
IMFS_jnode_types_t type,
IMFS_jnode_t *the_parent,
char *name,
mode_t mode
);
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory, /* IN */
char *name /* IN */
);
avfs_filesystem_node_types_t IMFS_node_type(
avfs_filesystem_location_info_t *pathloc /* IN */
);
int IMFS_stat(
avfs_filesystem_location_info_t *loc, /* IN */
struct stat *buf /* OUT */
);
int IMFS_Set_handlers(
avfs_filesystem_location_info_t *loc
);
int IMFS_evaluate_link(
avfs_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
);
int IMFS_eval_path(
const char *pathname, /* IN */
int flags, /* IN */
avfs_filesystem_location_info_t *pathloc /* IN/OUT */
);
int IMFS_link(
avfs_filesystem_location_info_t *to_loc, /* IN */
avfs_filesystem_location_info_t *parent_loc, /* IN */
const char *token /* IN */
);
int IMFS_unlink(
avfs_filesystem_location_info_t *pathloc /* IN */
);
int IMFS_chown(
avfs_filesystem_location_info_t *pathloc, /* IN */
uid_t owner, /* IN */
gid_t group /* IN */
);
int IMFS_freenodinfo(
avfs_filesystem_location_info_t *pathloc /* IN */
);
int IMFS_mknod(
const char *path, /* IN */
mode_t mode, /* IN */
dev_t dev, /* IN */
avfs_filesystem_location_info_t *pathloc /* IN/OUT */
);
IMFS_jnode_t *IMFS_create_node(
avfs_filesystem_location_info_t *parent_loc, /* IN */
IMFS_jnode_types_t type, /* IN */
char *name, /* IN */
mode_t mode, /* IN */
IMFS_types_union *info /* IN */
);
int IMFS_evaluate_for_make(
const char *path, /* IN */
avfs_filesystem_location_info_t *pathloc, /* IN/OUT */
const char **name /* OUT */
);
int IMFS_mount(
avfs_filesystem_mount_table_entry_t *mt_entry /* IN */
);
int IMFS_unmount(
avfs_filesystem_mount_table_entry_t *mt_entry /* IN */
);
int IMFS_freenod(
avfs_filesystem_location_info_t *node /* IN/OUT */
);
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode /* IN/OUT */
);
int memfile_ftruncate(
avfs_libio_t *iop, /* IN */
off_t length /* IN */
);
int imfs_dir_open(
avfs_libio_t *iop, /* IN */
const char *pathname, /* IN */
unsigned32 flag, /* IN */
unsigned32 mode /* IN */
);
int imfs_dir_close(
avfs_libio_t *iop /* IN */
);
ssize_t imfs_dir_read(
avfs_libio_t *iop, /* IN */
void *buffer, /* IN */
unsigned32 count /* IN */
);
int imfs_dir_lseek(
avfs_libio_t *iop, /* IN */
off_t offset, /* IN */
int whence /* IN */
);
int imfs_dir_fstat(
avfs_filesystem_location_info_t *loc, /* IN */
struct stat *buf /* OUT */
);
int imfs_dir_rmnod(
avfs_filesystem_location_info_t *pathloc /* IN */
);
int linearfile_read(
avfs_libio_t *iop, /* IN */
void *buffer, /* IN */
unsigned32 count /* IN */
);
int linearfile_lseek(
avfs_libio_t *iop, /* IN */
off_t offset, /* IN */
int whence /* IN */
);
int memfile_open(
avfs_libio_t *iop, /* IN */
const char *pathname, /* IN */
unsigned32 flag, /* IN */
unsigned32 mode /* IN */
);
int memfile_close(
avfs_libio_t *iop /* IN */
);
ssize_t memfile_read(
avfs_libio_t *iop, /* IN */
void *buffer, /* IN */
unsigned32 count /* IN */
);
ssize_t memfile_write(
avfs_libio_t *iop, /* IN */
const void *buffer, /* IN */
unsigned32 count /* IN */
);
int memfile_ioctl(
avfs_libio_t *iop, /* IN */
unsigned32 command, /* IN */
void *buffer /* IN */
);
int memfile_lseek(
avfs_libio_t *iop, /* IN */
off_t offset, /* IN */
int whence /* IN */
);
int memfile_rmnod(
avfs_filesystem_location_info_t *pathloc /* IN */
);
int device_open(
avfs_libio_t *iop, /* IN */
const char *pathname, /* IN */
unsigned32 flag, /* IN */
unsigned32 mode /* IN */
);
int device_close(
avfs_libio_t *iop /* IN */
);
ssize_t device_read(
avfs_libio_t *iop, /* IN */
void *buffer, /* IN */
unsigned32 count /* IN */
);
ssize_t device_write(
avfs_libio_t *iop, /* IN */
const void *buffer, /* IN */
unsigned32 count /* IN */
);
int device_ioctl(
avfs_libio_t *iop, /* IN */
unsigned32 command, /* IN */
void *buffer /* IN */
);
int device_lseek(
avfs_libio_t *iop, /* IN */
off_t offset, /* IN */
int whence /* IN */
);
int IMFS_utime(
avfs_filesystem_location_info_t *pathloc, /* IN */
time_t actime, /* IN */
time_t modtime /* IN */
);
int IMFS_fchmod(
avfs_filesystem_location_info_t *loc,
mode_t mode
);
int IMFS_symlink(
avfs_filesystem_location_info_t *parent_loc, /* IN */
const char *link_name,
const char *node_name
);
int IMFS_readlink(
avfs_filesystem_location_info_t *loc, /* IN */
char *buf, /* OUT */
size_t bufsize
);
int IMFS_fdatasync(
avfs_libio_t *iop
);
int IMFS_fcntl(
int cmd,
avfs_libio_t *iop
);
int IMFS_rmnod(
avfs_filesystem_location_info_t *pathloc /* IN */
);
#ifdef __cplusplus
}
#endif
#endif
/* end of include file */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?