PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
dentry_ops_t Struct Reference

Dentry operations structure. More...

#include <dentry.h>

Collaboration diagram for dentry_ops_t:

Data Fields

uint64_t(* revalidate )(dentry_t *dentry)
 Called when the dentry is looked up or retrieved from cache.
 
uint64_t(* iterate )(dentry_t *dentry, dir_ctx_t *ctx)
 Iterate over the entries in a directory dentry.
 
void(* cleanup )(dentry_t *dentry)
 Called when the dentry is being freed.
 

Detailed Description

Dentry operations structure.

Definition at line 121 of file dentry.h.

Field Documentation

◆ revalidate

uint64_t(* dentry_ops_t::revalidate) (dentry_t *dentry)

Called when the dentry is looked up or retrieved from cache.

Used for security by hiding files or directories based on filesystem defined logic.

Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 130 of file dentry.h.

◆ iterate

uint64_t(* dentry_ops_t::iterate) (dentry_t *dentry, dir_ctx_t *ctx)

Iterate over the entries in a directory dentry.

Parameters
dentryThe directory dentry to iterate over.
ctxThe directory context to use for iteration.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 138 of file dentry.h.

◆ cleanup

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

Called when the dentry is being freed.

Parameters
dentryThe dentry being cleaned up.

Definition at line 144 of file dentry.h.


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