PatchworkOS
Loading...
Searching...
No Matches
dentry_ops_t Struct Reference

Dentry operations structure. More...

#include <dentry.h>

Data Fields

uint64_t(* getdents )(dentry_t *dentry, dirent_t *buffer, uint64_t count, uint64_t *offset, path_flags_t flags)
 Used to now what is in a directory.
 
void(* cleanup )(dentry_t *entry)
 Called when the dentry is being freed.
 

Detailed Description

Dentry operations structure.

Note that the dentrys mutex will be acquired by the vfs and any implemented operations do not need to acquire it again.

Definition at line 69 of file dentry.h.

Field Documentation

◆ cleanup

void(* dentry_ops_t::cleanup) (dentry_t *entry)

Called when the dentry is being freed.

Definition at line 75 of file dentry.h.

Referenced by dentry_free().

◆ getdents

uint64_t(* dentry_ops_t::getdents) (dentry_t *dentry, dirent_t *buffer, uint64_t count, uint64_t *offset, path_flags_t flags)

Used to now what is in a directory.

Definition at line 74 of file dentry.h.

Referenced by vfs_getdents().


The documentation for this struct was generated from the following file: