![]() |
MOS Source Code
|
#include "mos/filesystem/dentry.hpp"#include "mos/filesystem/inode.hpp"#include "mos/filesystem/mount.hpp"#include "mos/filesystem/vfs.hpp"#include "mos/filesystem/vfs_types.hpp"#include "mos/syslog/printk.hpp"#include <mos_stdio.hpp>#include <mos_stdlib.hpp>#include <mos_string.hpp>Go to the source code of this file.
Functions | |
| dentry_t * | dentry_ref (dentry_t *dentry) |
| Increment the reference count of a dentry. | |
| dentry_t * | dentry_ref_up_to (dentry_t *dentry, dentry_t *root) |
| Increment the reference count of a dentry up to a given dentry. | |
| __nodiscard bool | dentry_unref_one_norelease (dentry_t *dentry) |
| Decrease the refcount of ONE SINGLE dentry, including (if it's a mountpoint) the mountpoint dentry. | |
| void | dentry_dump_refstat (const dentry_t *dentry, dump_refstat_receiver_t *receiver, void *receiver_data) |
| void | dentry_check_refstat (const dentry_t *dentry) |
| Check the reference count of a dentry. | |
| void | dentry_try_release (dentry_t *dentry) |
| void | dentry_unref (dentry_t *dentry) |
| Decrement the reference count of a dentry. | |
| std::optional< mos::string > | dentry_path (const dentry_t *dentry, dentry_t *root) |
| Get the path of a dentry. | |
| void dentry_dump_refstat | ( | const dentry_t * | dentry, |
| dump_refstat_receiver_t * | receiver, | ||
| void * | receiver_data ) |
Definition at line 88 of file dentry_utils.cpp.
Referenced by dentry_dump_refstat(), MOS_TEST_DECL_PTEST(), and vfs_sysfs_dentry_stats().