vfio_ap_mdev_validate_masks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vfio_ap_mdev_validate_masks β€” the kernel API manual, bestie edition ✨

okay so real talk, this page lives in the Kernel API Manual, and today's main character is vfio_ap_mdev_validate_masks. yes it's a long name. yes it ate. let's get into it 🫢


✨ NAME ✨

vfio_ap_mdev_validate_masks β€” this one's whole job is checking that the APQNs assigned to the mdev are not reserved for the default zcrypt driver, and not already assigned to another mdev. that's it. that's the vibe check πŸ’…


🌸 SYNOPSIS 🌸

int vfio_ap_mdev_validate_masks (struct ap_matrix_mdev *matrix_mdev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • matrix_mdev β€” the mdev that the APQNs being validated are assigned to. like, this is the one we're checking up on πŸ‘‘

⭐ RETURN ⭐

bestie it returns one of the following values, no cap:

  • the error returned from the ap_apqn_in_matrix_owned_by_def_drv function β€” most likely -EBUSY, which means the ap_attr_mutex lock is already held πŸ”’
  • EADDRNOTAVAIL if an APQN assigned to matrix_mdev is reserved for the zcrypt default driver πŸ™ˆ
  • EADDRINUSE if an APQN assigned to matrix_mdev is assigned to another mdev πŸ’€
  • a zero, indicating validation succeeded βœ… slay

πŸŽ€ SEE ALSO πŸŽ€

the kernel file, obviously:

  • Kernel file ./drivers/s390/crypto/vfio_ap_ops.c

and the whole friend group (iykyk):


ngl, that see-also list is giving "group chat at 2am" energy β€” everybody's there, everybody's tagged πŸ’œ

and that's the page!! sourced from ./drivers/s390/crypto, dated October 2026, filed under vfio_ap_mdev_validate_masks(9) β€” mwah, go validate those masks bestie πŸ’–πŸŒˆ

πŸ“¦ where this page comes from