STRUCT CXL_SECURITY_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct cxl_security_state(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for struct cxl_security_state β€” yes, that's a mouthful, but stick with me, this one's actually kind of iconic πŸŽ€


✨ NAME ✨

struct cxl_security_state β€” Device security state πŸ” literally the little bookkeeper that remembers what your CXL device's security subsystem is up to πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the whole vibe, verbatim, no cap:

struct cxl_security_state {
    unsigned long state;
    unsigned long enabled_cmds[BITS_TO_LONGS( CXL_SEC_ENABLED_MAX)];
    int poll_tmo_secs;
    bool sanitize_active;
    struct delayed_work poll_dwork;
    struct kernfs_node *sanitize_node;
 };

like look at that. chef's kiss. the indentation on the closing brace is doing its own thing and we respect it 🫢


🌸 Members 🌸

  • state β€” state of last security operation ✨ iykyk, it's the receipts of whatever security thing happened most recently
  • enabled_cmds β€” All security commands enabled in the CEL πŸ‘‘ (that's every security command that's been enabled in the CEL, if you were wondering, which you were)
  • poll_tmo_secs β€” polling timeout ⏰ the timeout for polling, fr fr
  • sanitize_active β€” sanitize completion pending 🧚 lowkey telling you a sanitize is still waiting to finish
  • poll_dwork β€” polling work item πŸŒ€ the delayed work item doing the polling
  • sanitize_node β€” sanitation sysfs file to notify πŸ’Œ the sysfs file that gets notified about sanitation

πŸ”₯ SEE ALSO πŸ”₯

the whole squad, go say hi πŸ‘‹

  • Kernel file ./drivers/cxl/cxlmem.h
  • struct cxl_memdev(9)
  • struct cxl_attach_region(9)
  • struct cxl_event_state(9)
  • struct cxl_poison_state(9)
  • struct cxl_fw_state(9)
  • struct cxl_memdev_state(9)
  • struct cxl_mem_command(9)
  • struct cxl_hdm(9)

⚠️ friendly reminder bestie: this is a kernel struct in ./drivers/cxl β€” treat it with main character respect, don't go poking at it from userspace like it's a group chat πŸ“΅

and that's the whole page!! mwah πŸ’‹ this dropped October 2026, straight outta ./drivers/cxl, and it's still signed off with struct cxl_security_state(9) at the bottom because consistency is queen πŸ‘‘βœ¨ stay safe, stay sanitized, ily πŸ«ΆπŸ’–

πŸ“¦ where this page comes from