assign_domain_store(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… assign_domain_store β€” the kernel API manual, but make it make sense πŸŽ€

okay bestie, so this page lives in the kernel API manual and it's all about assign_domain_store(9). Yes the name is a mouthful, no we are not skipping it. Buckle up πŸ¦‹


✨ NAME ✨

assign_domain_store β€” parses the APQI from @buf and sets the corresponding bit in the mediated matrix device's AQM. That's it, that's the whole personality. πŸ’…


🫢 SYNOPSIS 🫢

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

literally just those four things coming at you. iconic signature tbh.


🌸 ARGUMENTS 🌸

  • dev β€” the matrix device. the main character of this whole operation πŸ‘‘
  • attr β€” the mediated matrix device's assign_domain attribute
  • buf β€” a buffer containing the AP queue index (APQI) of the domain to be assigned. so like, the actual info you're handing over πŸ“
  • count β€” the number of bytes in buf

πŸ’– RETURN πŸ’–

it returns the number of bytes processed if the APQI is valid ✨ otherwise it hands you back one of the following errors. no cap, that's the deal:


πŸ”₯ DESCRIPTION πŸ”₯

ngl this is where it gets spicy. here's your error lineup 🌈

  1. -EINVAL β€” the APQI is not a valid number πŸ™ˆ
  2. -ENODEV β€” the APQI exceeds the maximum value configured for the system πŸ’€
  3. -EADDRNOTAVAIL β€” an APQN derived from the cross product of the APQI being assigned and the APIDs previously assigned is not bound to the vfio_ap device driver; or, if no APIDs have yet been assigned, the APQI is not contained in an APQN bound to the vfio_ap device driver 😭
  4. -EADDRINUSE β€” an APQN derived from the cross product of the APQI being assigned and the APIDs previously assigned is being used by another mediated matrix device 🚫
  5. -EAGAIN β€” the lock required to validate the mdev's AP configuration could not be obtained. it's giving "someone else is holding the door" energy πŸšͺ

🧚 SEE ALSO 🧚

okay this list is LONG, but bestie I would never leave a single one out. every single one of these is real and here:


kudos if you read every single one of those. genuinely obsessed with you 🫢

and that's the whole page, bestie!! πŸŽ€ it ships from ./drivers/s390/crypto, dated October 2026, and fr fr you just read the full assign_domain_store(9) manual page. slay. πŸ’œβœ¨

πŸ“¦ where this page comes from