Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 4 files:

Smatch caller information:

fs/kernfs/file.c kernfs_notify_workfn() -> kernfs_get_parent()

Type Parameter Key Value
PARAM_VALUE 0 kn 4096-426918848001064959,426918848001064961-ptr_max
PARAM_VALUE 0 kn->__parent 0
PARAM_VALUE 0 kn->attr.notify_next 0
CAPPED_DATA 0 kn->name 1
LOCK2 &root->kernfs_rwsem
LOCK2 &root->kernfs_supers_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_root)->kernfs_rwsem
TYPE_LOCK (struct kernfs_root)->kernfs_supers_rwsem

fs/kernfs/mount.c __kernfs_fh_to_dentry() -> kernfs_get_parent()

Type Parameter Key Value
PARAM_VALUE 0 kn 4096-ptr_max
PARAM_VALUE 0 kn->active.counter 0-s32max
PARAM_VALUE 0 kn->count.counter 0-s32max
DATA_SOURCE 0 kn r kernfs_find_and_get_node_by_id
RX_PATH
TASK_NOT_RUNNING

fs/resctrl/rdtgroup.c rdtgroup_kn_mode_restore() -> kernfs_get_parent()

Type Parameter Key Value
PARAM_VALUE 0 kn 4096-ptr_max
PARAM_VALUE 0 kn->__parent 0
PARAM_VALUE 0 kn->hash 2-2147483646
PARAM_VALUE 0 kn->ns 0,4096-ptr_max
CAPPED_DATA 0 kn->hash 1
DATA_SOURCE 0 kn r kernfs_find_and_get_ns
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 global &rdtgroup_mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

fs/sysfs/dir.c sysfs_rename_dir_ns() -> kernfs_get_parent()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev_replace->lock_finishing_cancel_unmount
HALF_LOCKED2 &sb->s_umount
HALF_LOCKED2 global &pci_slot_mutex
HALF_LOCKED2 global &uuid_mutex