unassign_co...domain_store(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ unassign_co...domain_store(9) β€” the Kernel API Manual page, bestie edition πŸ‘‘

Okay so real talk, this page lives in the Kernel API Manual and it's all about unassign_control_domain_store, and honestly? She's a vibe. Let me break her down for you.


✨ NAME ✨

unassign_control_domain_store β€” the function that parses the domain ID from @buf and then clears the corresponding bit in the mediated matrix device's ADM. That's it, that's the whole job. Clean. Simple. Iconic. πŸ’…


🌸 SYNOPSIS 🌸

ssize_t unassign_control_domain_store (struct device *dev , struct
device_attribute *attr , const char *buf , size_t count );

Four params, no drama. Type is ssize_t btw, in case you were wondering. πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the matrix device. She's the main character here, everything happens around her.
  • attr β€” the mediated matrix device's unassign_control_domain attribute. Yes, that one. That specific one. πŸŽ€
  • buf β€” a buffer containing the domain ID that's about to get unassigned. Bye bestie πŸ‘‹
  • count β€” the number of bytes in buf. Gotta know how much, fr fr.

πŸ’€ RETURN πŸ’€

So here's the tea: you get back the number of bytes processed if the domain ID is valid. Slay. ✨

But if it's not valid? She returns one of these errors, and you better be ready:

  • -EINVAL β€” if the ID is not a number. bestie that's literally not a number, what were you even doing 😭
  • -ENODEV β€” if the ID exceeds the maximum value configured for the system. Too big. Over it. Over the limit. 🚩
Not me stressing over validation errors β€” but seriously, handle your return values, okay? 🫢

🌈 SEE ALSO 🌈

First off, the Kernel file lives right here:

./drivers/s390/crypto/vfio_ap_ops.c

And now, the group chat β€” the whole squad, every single one, no cap:

Like, all thirty-three of them. I counted. You're welcome. 🧚


And that's the whole page! πŸŽ€ This one comes to you straight from ./drivers/s390/crypto, dated October 2026, and it's titled unassign_co...domain_store(9) β€” abbreviated with the ... and everything, she's mysterious like that. Bye bestie, go unassign some control domains responsibly πŸ’œβ­

πŸ“¦ where this page comes from