STRUCT UBIFS_DATA_NODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ubifs_data_node(9) ✨

okay bestie, so this is a page straight out of the Kernel API Manual, and it's literally all about struct ubifs_data_node β€” the data node. that's it, that's the vibe. a whole struct whose entire personality is "i hold data" πŸ’…


🌸 SYNOPSIS 🌸

like, here's the whole shape of it, no cap:

struct ubifs_data_node {
    struct ubifs_ch ch;
    __u8 key[UBIFS_MAX_KEY_LEN];
    __le32 size;
    __le16 compr_type;
    __le16 compr_size;
    __u8 data[];
};

πŸŽ€ Members πŸŽ€

okay so let's go through the whole group chat, member by member:

  • ch β€” the common header. every struct needs its little foundational bestie 🫢
  • key β€” the node key. it's a __u8 array of UBIFS_MAX_KEY_LEN, so like, respect the length, okay? 😌
  • size β€” the uncompressed data size in bytes. that's a __le32 btw, in case you were wondering ✨
  • compr_type β€” the compression type, and it's giving options: UBIFS_COMPR_NONE, UBIFS_COMPR_LZO, etc. pick your fighter πŸ’…
  • compr_size β€” the compressed data size in bytes, and listen, this one is only valid when data is encrypted. like, only then. don't come for it otherwise πŸ™ˆ
  • data β€” data. that's it. that's the description. iconic, honestly πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

go read the Kernel file ./fs/ubifs/ubifs-media.h first, bestie, it's the mothership. and then the whole extended friend group:

  • struct ubifs_ch(9)
  • union ubifs_dev_desc(9)
  • struct ubifs_ino_node(9)
  • struct ubifs_dent_node(9)
  • struct ubifs_trun_node(9)
  • struct ubifs_pad_node(9)
  • struct ubifs_sb_node(9)
  • struct ubifs_mst_node(9)
  • struct ubifs_ref_node(9)
  • struct ubifs_auth_node(9)
  • struct ubifs_sig_node(9)
  • struct ubifs_branch(9)
  • struct ubifs_idx_node(9)
  • struct ubifs_cs_node(9)
  • struct ubifs_orph_node(9)

and that's the whole page, fr fr. now go forth and reference your structs correctly πŸ’–

sign-off time ✨ this little masterpiece lives in ./fs/ubifs, dated October 2026, and it's officially titled struct ubifs_data_node(9) β€” periodt. πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from