dirent_del(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 dirent_del(9) β€” from the Kernel API Manual, bestie πŸ’…

okay so real talk, this is a kernel API page and it's lowkey tiny but it's iconic in its own way. It lives in the dirent_del(9) corner of the Kernel API Manual and honestly? She's short, she's sweet, she deletes a dirent. Slay.


✨ NAME ✨

dirent_del β€” Delete a dirent πŸ—‘οΈβœ¨

like literally that's her whole job. deleting a dirent. main character energy fr fr.


πŸ¦‹ SYNOPSIS πŸ¦‹

void dirent_del (struct gfs2_inode *dip , struct buffer_head *bh ,
struct gfs2_dirent *prev , struct gfs2_dirent *cur );
heads up bestie, the spacing in that signature is exactly how the page has it β€” spaces before the commas and everything. it's giving "authored by someone who had opinions about commas" and we respect it πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

four whole arguments, let's go through them one by one, no skips, we don't skip here 🫢

  • dip β€” The GFS2 inode. this is the inode we're working with, the whole vibe container basically πŸ’–
  • bh β€” The buffer. the buffer, the moment, the holding space for the data 🌸
  • prev β€” The previous dirent. the one that comes before ✨
  • cur β€” The current dirent. the one we're on right now, the star of the show πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

okay this section ate because it's literally a whole friend group. everything below is from the kernel file ./fs/gfs2/dir.c and these are all her neighbors, iykyk:

and remember: the source of all this is the kernel file ./fs/gfs2/dir.c πŸ§šβ€β™€οΈ


okay that's the whole page, it's short but she's perfect πŸŽ€ and for the cute sign-off: this came out of ./fs/gfs2 and it's dated October 2026, and the page itself is dirent_del(9). periodt. πŸ’…πŸ”₯⭐

πŸ“¦ where this page comes from