MOS Source Code
Loading...
Searching...
No Matches
inode.h File Reference
+ Include dependency graph for inode.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void inode_ref (inode_t *inode)
 
bool inode_unref (inode_t *inode)
 
bool inode_unlink (inode_t *dir, dentry_t *dentry)
 Unlink a dentry from its parent inode.
 

Function Documentation

◆ inode_ref()

void inode_ref ( inode_t * inode)

Definition at line 72 of file inode.c.

Referenced by dentry_attach(), and dentry_ref().

◆ inode_unref()

bool inode_unref ( inode_t * inode)
nodiscard

Definition at line 78 of file inode.c.

Referenced by dentry_detach(), and dentry_unref_one_norelease().

+ Here is the call graph for this function:

◆ inode_unlink()

bool inode_unlink ( inode_t * dir,
dentry_t * dentry )

Unlink a dentry from its parent inode.

Parameters
dirThe parent inode
dentryThe dentry to unlink
Returns
true if the inode was successfully unlinked, false otherwise (but the inode may still be there if other references exist)

Definition at line 86 of file inode.c.

Referenced by memfd_create(), and vfs_unlinkat().

+ Here is the call graph for this function: