vio_cmo_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ vio_cmo_alloc(9) ✨

okay bestie 🫢 welcome to the Kernel API Manual page for vio_cmo_alloc(9) β€” ngl, it's giving main character energy πŸ’…. This one is all about allocating IO memory for CMO-enable devices, and it's lowkey iconic. No cap.

🌸 NAME 🌸

vio_cmo_alloc β€” allocate IO memory for CMO-enable devices ✨

πŸŽ€ SYNOPSIS πŸŽ€

int vio_cmo_alloc (struct vio_dev *viodev , size_t size );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • viodev β€” VIO device requesting IO memory πŸ‘‘
  • size β€” size of allocation requested πŸ“

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜•: allocations come from memory reserved for the devices and any excess IO memory available to all devices. and the way that the spare pool used to service hotplug must be equal to VIO_CMO_MIN_ENT for the excess pool to be made available? obsessed 🫢.

Return codes, bestie: 0 for successful allocation and -ENOMEM for a failure 😭.

🌈 SEE ALSO 🌈

Kernel file ./arch/powerpc/platforms/pseries/vio.c β€” and the whole squad is here, fr fr:


okay bye bestie 🫢 this page comes from ./arch/powerpc/platforms/pseries, dated October 2026, and it's the vio_cmo_alloc(9) entry β€” periodt πŸ’…βœ¨

πŸ“¦ where this page comes from