STRUCT REGISTRY_LIST_ENTRY(9)
π struct registry_list_entry(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's about struct registry_list_entry, and it's literally a linked list member for a registry key/value. yes that's a mouthful, no i will not be shortening it π«Ά
πΈ SYNOPSIS πΈ
like, here's the whole vibe of the struct, don't touch a single character:
struct registry_list_entry {
struct list_head head;
enum registry_type type;
size_t klen;
char key[REGISTRY_MAX_KEY_LENGTH];
size_t vlen;
u32 dword;
u8 binary[];
};
π Members π
bestie these are the members, pay attention, there will be a quiz:
headβ thelist_headstruct, it's giving linked-list glue πtypeβ it's one ofdword,binary, orstringklenβ the length of the name of the keykeyβ the key name itself, iconicvlenβ the length of the valuedwordβ the data, if it'sREGISTRY_TABLE_ENTRY_TYPE_DWORDbinaryβ the data, if it'sTYPE_BINARYorTYPE_STRING
β¨ Description β¨
every single registry key/value is represented internally by this struct. every one. no cap π
Type DWORD is a simple 32-bit unsigned integer, and its value is stored in dword. that's it, that's the whole personality.
Types BINARY and STRING are variable-length binary blobs π the only real difference between BINARY and STRING is that STRING is null-terminated and is expected to contain only printable characters. random bytes? not their moment. π
π Note π
technically it is possible to have multiple keys with the same name but different types, but this is not useful since GSP-RM expects keys to have only one specific type. so likeβ¦ don't. it's giving chaotic for no reason π
fr fr, one key = one type. that's the vibe check. β
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c nvkm_gsp_mem_ctor(9),add_registry(9),build_registry(9),clean_registry(9),strip(9),r535_gsp_rpc_set_registry(9),r535_gsp_msg_run_cpu_sequencer(9),struct rpc_ucode_libos_print_v1e_08(9),r535_gsp_msg_libos_print(9),create_debugfs(9),r535_gsp_libos_debugfs_init(9),create_pte_array(9),r535_gsp_libos_init(9),nvkm_gsp_radix3_sg(9),r535_debugfs_shutdown(9),is_empty(9),r535_gsp_copy_log(9),r535_gsp_retain_logging(9),r535_gsp_libos_debugfs_fini(9)
and that's the page!! π§ from ./drivers/gpu/drm/nouveau/nvkm..., dated October 2026 β mwah, slay, struct registry_list_entry(9) ate and left absolutely no crumbs ππ
π¦ 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