jffs2_add_physical_node_ref(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 πŸ¦‹


source/version: ./fs/jffs2 Β· October 2026 Β· jffs2_add_physical_node_ref(9) β€” bye bestie, go hold that alloc_sem πŸ’œπŸŽ€

πŸ“¦ where this page comes from