tb_nvm_add_non_active(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

hey bestie, welcome to the Kernel API Manual page for tb_nvm_add_non_active(9) πŸ’–. The name says it all: tb_nvm_add_non_active β€” adds a non-active NVMem device to NVM. Slay.

✨ SYNOPSIS ✨

the exact signature, no cap:

int tb_nvm_add_non_active (struct tb_nvm *nvm , nvmem_reg_write_t
reg_write );

πŸŽ€ ARGUMENTS πŸŽ€

  • nvm β€” NVM structure.
  • reg_write β€” pointer to the function to write the NVM (passed directly to the NVMem device).

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: it registers a new non-active NVmem device for nvm. ✨

Important bestie note: reg_write is called directly from NVMem, so it must handle possible concurrent access if needed. The first parameter passed to reg_write is the nvm structure. The size of the NVMem device is set to NVM_MAX_SIZE. πŸ’…

πŸ’– RETURN πŸ’–

0 on success, negative errno otherwise. That's the whole return vibe, fr fr.

🌈 SEE ALSO 🌈

go check these out, iykyk:


mwah πŸ’‹ β€” source/version: ./drivers/thunderbolt, date: October 2026, and page: tb_nvm_add_non_active(9) 🫢

πŸ“¦ where this page comes from