debugfs_create_automount(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… debugfs_create_automount πŸ’…

okay so bestie, welcome to the Kernel API Manual entry for debugfs_create_automount(9) β€” yes, the manual-name vibe is folded in right here, no boring header line needed. πŸ’– This one is literally about making an automount point in the debugfs filesystem, and the way that sounds way fancier than it is. iykyk. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct dentry * debugfs_create_automount (const char *name , struct
dentry *parent , debugfs_automount_t f , void *data );

🌸 ARGUMENTS 🌸

  • name β€” a pointer to a string containing the name of the file to create. that's the label, bestie. 🏷️
  • parent β€” a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is NULL, then the file will be created in the root of the debugfs filesystem. no parent? root it is, periodt. 🌱
  • f β€” function to be called when pathname resolution steps on that one. yes, that one. your main character callback. πŸ‘‘
  • data β€” opaque argument to pass to f. it's giving mystery box, and honestly? iconic. 🎁

🧚 DESCRIPTION 🧚

so here's the whole vibe check: f should return what ->d_automount would. that's literally it. no cap, that's the description. 🫢


🌈 SEE ALSO 🌈

Kernel file ./fs/debugfs/inode.c has the receipts, bestie: debugfs_lookup(9), debugfs_create_file_unsafe(9), debugfs_create_file_size(9), debugfs_create_dir(9), debugfs_create_symlink(9), debugfs_remove(9), debugfs_lookup_and_remove(9), debugfs_change_name(9), debugfs_initialized(9). go read the source, it slays. πŸ’€βœ¨


xoxo, your debugfs bestie πŸ’– β€” source/version is ./fs/debugfs, date is October 2026, and the page is debugfs_create_automount(9) πŸŽ€

πŸ“¦ where this page comes from