debugfs_create_ulong(9)
β¨ debugfs_create_ulong(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's a lil page about debugfs_create_ulong, and honestly? it's giving "small function, big main character energy" π
πΈ NAME πΈ
debugfs_create_ulong β creates a debugfs file that you can read from and write to, and it's all about an unsigned long value. no cap, that's the whole gig π«Ά
π¦ SYNOPSIS π¦
void debugfs_create_ulong (const char *name , umode_t mode , struct
dentry *parent , unsigned long *value );
like, that's the whole signature. four args, zero drama β¨
π ARGUMENTS π
nameβ a pointer to a string holding the name of the file you wanna create. this is the lil label on the file, bestie π·οΈmodeβ the permissions this file should have. like who gets to peek and who gets to poke πparentβ a pointer to the parent dentry for this file. if you set it, it should be a directory dentry, okay? and if this parameter isNULL, the file gets created in the root of the debugfs filesystem instead. rootless behavior, iconic πvalueβ a pointer to the variable that the file reads from and writes to. this is the actual star of the show, the variable in question π
π DESCRIPTION π
so here's the tea β β this function creates a file in debugfs with the name you handed it (name), and that file contains the value of the variable value. if the mode variable is set so it allows it, the file can be read from and written to. both directions, periodt π₯
ngl it's literally just a debugfs hookup between a file name and your unsigned long β the variable stays the main character, the file is just its publicist π
π SEE ALSO π
the kernel file ./fs/debugfs/file.c and all these besties β go say hi π«Ά:
debugfs_file_get(9)debugfs_file_put(9)debugfs_enter_cancellation(9)debugfs_leave_cancellation(9)debugfs_create_u8(9)debugfs_create_u16(9)debugfs_create_u32(9)debugfs_create_u64(9)debugfs_create_x8(9)debugfs_create_x16(9)debugfs_create_x32(9)debugfs_create_x64(9)debugfs_create_size_t(9)debugfs_create_atomic_t(9)debugfs_create_bool(9)debugfs_create_str(9)debugfs_create_blob(9)debugfs_create_u32_array(9)debugfs_print_regs32(9)debugfs_create_regset32(9)debugfs_create_devm_seqfile(9)
and that's the whole page, bestie π sign-off time: this lives in ./fs/debugfs, it's dated October 2026, and yes β debugfs_create_ulong(9) is the name on the tin. stan a tidy manpage β¨ππ¦
π¦ 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