vringh_iov_pull_user(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vringh_iov_pull_user πŸ’–

okay bestie, so you know how this page lives in the Kernel API Manual? yeah. that's the world we're in. kernel-land. grab your iced coffee πŸ§Šβ˜• because this one's short and sweet and honestly iconic of it.

✨ NAME ✨

vringh_iov_pull_user β€” copy bytes from vring_iov. that's the whole vibe. it copies bytes. from the vring iov. slay πŸŽ€


🌸 SYNOPSIS 🌸

ssize_t vringh_iov_pull_user (struct vringh_iov *riov , void *dst ,
       size_t len );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • riov β€” the riov as passed to vringh_getdesc_user (updated as we consume). like, it changes as it goes, bestie β€” this thing is not read-only, it's giving main character energy and it mutates πŸ’…
  • dst β€” the place to copy. where the bytes land. that's the spot. the destination. the moment.
  • len β€” the maximum length to copy. maximum, ok? not a promise, a ceiling. respect the ceiling πŸ™

πŸ’œ DESCRIPTION πŸ’œ

Returns the bytes copied <= len or a negative errno. that's it. that's the whole function. it gives you a number back β€” either a happy little count that is less than or equal to len, or a negative errno that says nope 😭

ngl, keep an eye on that return value β€” negative means things went sideways, and errno is the one telling you why 🫢

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/vhost/vringh.c β€” go read it, iykyk ✨

and the whole friend group, in this exact order because we're not doing chaos today:

vringh_kiov_advance(9), vringh_init_user(9), vringh_getdesc_user(9), vringh_iov_push_user(9), vringh_complete_user(9), vringh_complete_multi_user(9), vringh_notify_enable_user(9), vringh_notify_disable_user(9), vringh_need_notify_user(9), vringh_init_kern(9), vringh_getdesc_kern(9), vringh_complete_kern(9), vringh_notify_enable_kern(9), vringh_notify_disable_kern(9), vringh_need_notify_kern(9), vringh_init_iotlb(9), vringh_init_iotlb_va(9), vringh_set_iotlb(9), vringh_getdesc_iotlb(9), vringh_iov_pull_iotlb(9), vringh_iov_push_iotlb(9), vringh_complete_iotlb(9), vringh_need_notify_iotlb(9)


mwah πŸ’‹ that's the page! it comes from ./drivers/vhost, dated October 2026, and it's filed under vringh_iov_pull_user(9) β€” go forth and copy those bytes, bestie, you're literally gonna ate it πŸ‘‘πŸ’–

πŸ“¦ where this page comes from