7 #ifndef ZRTOS_VFS_DENTRY_H 8 #define ZRTOS_VFS_DENTRY_H 101 ,.callback = callback
102 ,.callback_arg = callback_arg
104 ,.filter_arg = filter_arg
107 &zrtos_vfs_dentry__index
160 if(0 == thiz->
count){
179 if(0 == thiz->
count){
#define ZRTOS_CAST(type, value)
bool(* filter)(zrtos_vfs_dentry_t *node, void *arg)
void zrtos_vfs_dentry__each_child(zrtos_vfs_dentry_t *thiz, bool(*callback)(zrtos_vfs_dentry_t *node, void *arg), void *callback_arg, bool(*filter)(zrtos_vfs_dentry_t *node, void *arg), void *filter_arg)
#define ZRTOS_VFS_PLUGIN__INVOKE(thiz, operation,...)
#define ZRTOS_VFS_PLUGIN(name)
zrtos_vfs_dentry_t * parent
void zrtos_vfs_inode__deinit(zrtos_vfs_inode_t *thiz)
static bool zrtos_vfs_dentry__lookup_callback_cb(zrtos_vfs_dentry_t *node, void *arg)
bool zrtos_vfs_dentry__each_child_filter_name_cb(zrtos_vfs_dentry_t *thiz, void *arg)
zrtos_clist_t zrtos_vfs_dentry__index
zrtos_error_t zrtos_vfs_dentry__mount(zrtos_vfs_dentry_t *thiz, zrtos_vfs_plugin_t *plugin, void *inode_ctx)
void zrtos_vfs_dentry__set_inode_data(zrtos_vfs_dentry_t *thiz, void *ctx)
bool(* callback)(zrtos_vfs_dentry_t *node, void *arg)
zrtos_vfs_plugin_t * plugin
zrtos_error_t zrtos_vfs_dentry__umount(zrtos_vfs_dentry_t *thiz)
bool zrtos_error__is_success(zrtos_error_t thiz)
#define ZRTOS_VFS_PLUGIN_OPERATION__MOUNT
bool zrtos_vfs_dentry__init(zrtos_vfs_dentry_t *thiz, char *name, struct _zrtos_vfs_dentry_t *parent)
int zrtos_str__cmp(char *a, char *b)
void * zrtos_vfs_dentry__get_inode_data(zrtos_vfs_dentry_t *thiz)
#define zrtos_types__get_container_of_ex(ptr, type, member)
char * zrtos_str__tok_r(char *s, const char *delim, char **save_ptr)
zrtos_vfs_dentry_t * zrtos_vfs_dentry__lookup(zrtos_vfs_dentry_t *thiz, char *path)
struct _zrtos_vfs_dentry_t * parent
bool zrtos_clist__push(zrtos_clist_t *thiz, zrtos_clist_node_t *node)
bool zrtos_clist_node__init(zrtos_clist_node_t *thiz)
static bool zrtos_vfs_dentry__each_child_cb(zrtos_clist_node_t *node, void *arg)
bool zrtos_vfs_inode__init(zrtos_vfs_inode_t *thiz, zrtos_vfs_plugin_t *plugin, void *ctx)
struct _zrtos_vfs_dentry__each_child_cb_inode_t zrtos_vfs_dentry__each_child_cb_inode_t
bool zrtos_vfs_dentry__is_filesystem(zrtos_vfs_dentry_t *node)
void zrtos_clist__each(zrtos_clist_t *thiz, bool(*callback)(zrtos_clist_node_t *node, void *arg), void *arg)
struct _zrtos_vfs_dentry_t zrtos_vfs_dentry_t
#define ZRTOS_VFS_PLUGIN_OPERATION__UMOUNT