lookup_file(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the eventfs_inode that represents parent of the file. πŸ‘‘
  • dentry β€” the dentry to 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_operations that 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