cxl_mem_sanitize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

bestie, welcome to the cxl_mem_sanitize(9) page from the Kernel API Manual ✨ this one is short but iconic, no cap.

πŸŽ€ NAME πŸŽ€

cxl_mem_sanitize β€” Send a sanitization command to the device. πŸ’…

✨ SYNOPSIS ✨

int cxl_mem_sanitize (struct cxl_memdev *cxlmd , u16 cmd );

🫢 ARGUMENTS 🫢

  • cxlmd β€” The device for the operation. πŸ–₯️
  • cmd β€” The specific sanitization command opcode. iykyk, it's the exact opcode. πŸ”‘

πŸ”₯ RETURN πŸ”₯

0 if the command was executed successfully, regardless of whether or not the actual security operation is done in the background, such as for the Sanitize case. So bestie, success here does not automatically mean the security thing is fully done β€” it can be doing its little background era. 😭✨

Error return values can be the result of the mailbox command, -EINVAL when security requirements are not met or invalid contexts, or -EBUSY if the sanitize operation is already in flight. 🚨

πŸ¦‹ DESCRIPTION πŸ¦‹

See CXL 3.0 8.2.9.8.5.1 Sanitize and 8.2.9.8.5.2 Secure Erase. that's the lore, that's the vibe. πŸ“–πŸ’œ

🌈 SEE ALSO 🌈


okay that's the whole page, mwah πŸ’‹ signing off with the footer energy: ./drivers/cxl/core β€’ October 2026 β€’ cxl_mem_sanitize(9) 🫢

πŸ“¦ where this page comes from