STRUCT CXL_SECURITY_STATE(9)
π 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 recentlyenabled_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 frsanitize_activeβ sanitize completion pending π§ lowkey telling you a sanitize is still waiting to finishpoll_dworkβ polling work item π the delayed work item doing the pollingsanitize_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
- 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