eventfs_create_events_dir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… eventfs_create_events_dir β€” bestie, let's build the top-level events dir

okay so this is from the Kernel API Manual, and it's literally the function that creates the top level events directory. yes bestie, that directory. the big one. the main character. πŸ‘‘


✨ SYNOPSIS ✨

struct eventfs_inode * eventfs_create_events_dir (const char *name ,
struct dentry *parent , const struct eventfs_entry *entries , int size ,
void *data );

notice how it hands you back a struct eventfs_inode *? yeah. it's giving "i made you something and it's an inode". πŸŽ€


🌸 ARGUMENTS 🌸

  • name β€” the name of the top level directory you're creating. like, what are we calling this thing, bestie? 🏷️
  • parent β€” the parent dentry for this file, over there in the tracefs directory. that's its home. that's where it lives. 🏠
  • entries β€” a list of entries that represent the files under this directory. the whole squad of files, listed out. πŸ’–
  • size β€” the number of entries. so like, how many of them there are. count them. go off. πŸ”’
  • data β€” the default data to pass to the files. and yes, lowkey, an entry may override it. so it's a default default. πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

fr fr, what this function does is create the top of the trace event directory. that's it, that's the vibe. ✨

and if you wanna know about how entries actually gets used? see eventfs_create_dir. it's all there, iykyk. πŸ‘€

side note bestie: nothing here is deprecated or dangerous, so you can absolutely slay responsibly. πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./fs/tracefs/event_inode.c β€” plus the whole friend group:


and that's the whole page, bestie 🫢 this one came out of ./fs/tracefs, dated October 2026, and it's eventfs_create_events_dir(9) β€” periodt. πŸ’œ

πŸ“¦ where this page comes from