STRUCT HSM_IOEVENTFD(9)
π struct hsm_ioeventfd β bestie, it's literally the properties of HSM ioeventfd
okay so real talk: this is a page from the Kernel API Manual, section 9, and honestly? she's kind of a baddie. It's the manpage for struct hsm_ioeventfd, and no cap, once you get what this little struct does you'll be obsessed. Buckle up, we're going in π
β¨ NAME β¨
struct hsm_ioeventfd β the properties of an HSM ioeventfd. That's it, that's the vibe. It's the struct that holds all the deets about one of those ioeventfd things. π
πΈ SYNOPSIS πΈ
Here's the whole glow-up, verbatim, do not touch:
struct hsm_ioeventfd {
struct list_head list;
struct eventfd_ctx *eventfd;
u64 addr;
u64 data;
int length;
int type;
bool wildcard;
};
Look at her. Seven members. Iconic. π
π¦ Members π¦
okay so let's meet the cast, one by one, no skipping, we don't do that here π
listβ bestie this is the entry withinacrn_vm.ioeventfds, which is the list of ioeventfds belonging to a VM. So she's literally linked in. main character energy fr fr π₯eventfdβ the eventfd of the HSM ioeventfd. That's the whole job. π«Άaddrβ the address of the I/O range. simple. clean. slays.dataβ the data for matching. it's giving "what we're looking for, bestie" πlengthβ the length of the I/O range. numbers, we love to see them.typeβ the type of I/O range, and the valid values areACRN_IOREQ_TYPE_MMIO/ACRN_IOREQ_TYPE_PORTIO. copy that down, it's on the test πwildcardβ whether it's data matching or not. like, are we doing the matching thing or is it a wildcard situation.bool, sotrue/false, keep it cute β¨
π SEE ALSO π
want more lore? go read the kernel file ./drivers/virt/acrn/ioeventfd.c β that's where the real tea lives π§
aaaand that's the page!! you ate this, honestly. π«Ά creds to the source ./drivers/virt/acrn, dated October 2026 β that's the footer, bestie, don't forget it. periodt. π
β¨
π¦ 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