lookup_file(9)
π NAME π
okay so bestie, this is the Kernel API Manual entry for lookup_file β it's literally the function that looks up a file in the tracefs filesystem. slay. π
β¨ SYNOPSIS β¨
struct dentry * lookup_file (struct eventfs_inode *parent_ei , struct dentry *dentry , umode_t mode , struct eventfs_attr *attr , void *data , const struct file_operations *fop );
π ARGUMENTS π
parent_eiβ pointer to theeventfs_inodethat represents parent of the file. πdentryβ thedentryto look up. πmodeβ the permission that the file should have. πattrβ saved attributes changed by user. π«Άdataβ something that the caller will want to get to later on. πΎfopβstruct file_operationsthat should be used for this file. π οΈ
πΈ DESCRIPTION πΈ
so this function creates a dentry that represents a file in the eventsfs_inode directory. iconic. β¨ The inode.i_private pointer will point to data in the open call. periodt. π
π¦ SEE ALSO π¦
Kernel file ./fs/tracefs/event_inode.c, plus these related besties: lookup_dir_entry(9), eventfs_d_release(9), lookup_file_dentry(9), eventfs_root_lookup(9), eventfs_create_dir(9), eventfs_create_events_dir(9), eventfs_remove_rec(9), eventfs_remove_dir(9), eventfs_remove_events_dir(9). π
k bye bestie π source/version: ./fs/tracefs; date: October 2026; page: lookup_file(9). π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms