vme_bus_num(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vme_bus_num β€” like, the bus number one

okay so bestie, welcome to vme_bus_num(9) from the Kernel API Manual ✨ this is the little function that tells you which bus you're on. tiny page, iconic energy, let's go πŸŽ€


✨ NAME ✨

vme_bus_num β€” retrieve bus number. that's it. that's the whole vibe πŸ’–


🌸 SYNOPSIS 🌸

int vme_bus_num (struct vme_dev *vdev );

literally one argument, king 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • vdev β€” pointer to the VME device struct vme_dev that's assigned to your driver instance. like, your device, bestie, the one the driver got handed πŸ’«

πŸ’œ DESCRIPTION πŸ’œ

so what it does is: it retrieves the bus enumeration associated with the provided VME device. that's the whole thing. no cap, no secret extra steps, just grabbing the bus enumeration off the vdev you passed in 🌈


πŸ”₯ RETURN πŸ”₯

  • the bus number on success πŸŽ‰
  • -EINVAL if the VME bridge cannot be determined 😭 (like when it just can't figure out which bridge you mean β€” rude, honestly)

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/staging/vme_user/vme.c, plus the whole friend group β€” every single one of these, no skipping πŸ™ˆ:


okay that's the page!! mwah πŸ’‹ this one's filed under ./drivers/staging/vme_user and dated October 2026 β€” so like, mark your calendar bestie πŸ—“οΈβœ¨ slay, go read the other vme_* ones, they're all in the same friend group fr fr πŸ’…πŸ¦‹

πŸ“¦ where this page comes from