tb_nvm_add_non_active(9)
πΈ 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 theNVMemdevice).
π¦ 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:
- Kernel file
./drivers/thunderbolt/nvm.c struct tb_nvm_vendor_ops(9)struct tb_nvm_vendor(9)tb_nvm_alloc(9)tb_nvm_read_version(9)tb_nvm_validate(9)tb_nvm_write_headers(9)tb_nvm_add_active(9)tb_nvm_write_buf(9)tb_nvm_free(9)tb_nvm_read_data(9)tb_nvm_write_data(9)
mwah π β source/version: ./drivers/thunderbolt, date: October 2026, and page: tb_nvm_add_non_active(9) π«Ά
π¦ 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