dirent_del(9)
πΈ 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:
gfs2_dir_write_data(9)gfs2_dir_read_data(9)gfs2_dir_get_hash_table(9)gfs2_dir_hash_inval(9)dirent_next(9)get_leaf_nr(9)dir_make_exhash(9)dir_split_leaf(9)dir_double_exhash(9)compare_dents(9)do_filldir_main(9)gfs2_dir_readahead(9)dir_e_read(9)gfs2_dir_search(9)dir_new_leaf(9)gfs2_dir_add(9)gfs2_dir_del(9)gfs2_dir_mvino(9)leaf_dealloc(9)gfs2_dir_exhash_dealloc(9)gfs2_diradd_alloc_required(9)
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
- 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