ib_is_udata_in_empty(9)
π¦ ib_is_udata_in_empty(9) π¦
okay so bestie, welcome to the Kernel API Manual β this is the page for ib_is_udata_in_empty(9), and honestly? she's a tiny little vibe-check function and I'm obsessed π
β¨ NAME β¨
ib_is_udata_in_empty β the girl whose whole job is checking whether the udata input buffer is all zeros π
πΈ SYNOPSIS πΈ
int ib_is_udata_in_empty (struct ib_udata *udata );
π ARGUMENTS π
udataβ the system callsib_udatastruct, periodt β¨ that's the one thing you're handing her.
π₯ DESCRIPTION π₯
so here's the tea β β you should use this one when the driver does not currently define a driver data struct. Like, there's no struct, nothing to validate, so she just peeks at the buffer and tells you what's up π
Here's the glow-up breakdown of her return values:
0β the buffer is empty or all zeros, slay π-EOPNOTSUPPβ there's non-zero data in there, so nope, not supported π- a negative error code β something went wrong on failure, and that's the whole story π
ngl bestie, read those returns carefully β0and-EOPNOTSUPPare not the same thing, and a negative error code is its own separate third case. Don't conflate them, iykyk π
π SEE ALSO π
- Kernel file
./include/rdma/uverbs_ioctl.h uverbs_attr_get_uobjs_arr(9)ib_copy_validate_udata_in(9)ib_copy_validate_udata_in_cm(9)ib_respond_udata(9)ib_respond_empty_udata(9)ib_no_udata_io(9)
the whole friend group fr fr π«Ά go say hi to all of them π
and that's the page, babes π this iconic little drop comes to you from ./include/rdma, dated October 2026 β main character energy from the kernel, always βπ§ββοΈπ
π¦ 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