dirent_next(9)
β¨ NAME β¨
okay so bestie, welcome to dirent_next(9), straight from the Kernel API Manual π«Ά β and the name is literally Next dirent. Thatβs the assignment. slay.
πΈ SYNOPSIS πΈ
the signature is giving:
int dirent_next (struct gfs2_inode *dip , struct buffer_head *bh ,
struct gfs2_dirent **dent );
π ARGUMENTS π
dipβ the directory π aka the main character here.bhβ The buffer π«Ά yes, that buffer.dentβ Pointer to list of dirents π₯ itβs pointing at the dirent list, periodt.
π RETURN π
returns 0 on success, and an error code otherwise π no cap, thatβs the whole return vibe.
π SEE ALSO π
Kernel file ./fs/gfs2/dir.c is the home base, and these linked besties are all invited to the group chat β collect them all, iykyk:
gfs2_dir_write_data(9)gfs2_dir_read_data(9)gfs2_dir_get_hash_table(9)gfs2_dir_hash_inval(9)dirent_del(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)
xoxo, bestie π
signed off from source/version ./fs/gfs2, dated October 2026, still serving dirent_next(9) energy. 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