eventfs_create_events_dir(9)
π 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:
lookup_file(9)lookup_dir_entry(9)eventfs_d_release(9)lookup_file_dentry(9)eventfs_root_lookup(9)eventfs_create_dir(9)eventfs_remove_rec(9)eventfs_remove_dir(9)eventfs_remove_events_dir(9)
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
- 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