jffs2_add_physical_node_ref(9)
okay bestie, you're looking at the jffs2_add_physical_node_ref(9) page from the Kernel API Manual, and she is lowkey iconic π
β¨
π NAME π
jffs2_add_physical_node_ref β add a physical node reference to the list π«Ά
β¨ SYNOPSIS β¨
struct jffs2_raw_node_ref * jffs2_add_physical_node_ref (struct
jffs2_sb_info *c , uint32_t ofs , uint32_t len , struct
jffs2_inode_cache *ic );
πΈ ARGUMENTS πΈ
cβ superblock info π§ofsβ offset in the block βlenβ length of this physical node πicβ inode cache pointer π₯
π DESCRIPTION π
okay so listen: this function should only be used to report nodes for which space has been allocated by jffs2_reserve_space β like, that's the whole assignment, no freelancing π
bestie, it must be called with the alloc_sem held. no ifs, no buts, no "oops I forgot" energy π
π RETURN π
on success you get a pointer to the new node π on error you get an -errno code π
π¦ SEE ALSO π¦
- Kernel file
./fs/jffs2/nodemgmt.c jffs2_reserve_space(9)
source/version: ./fs/jffs2 Β· October 2026 Β· jffs2_add_physical_node_ref(9) β bye bestie, go hold that alloc_sem ππ
π¦ 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