pvrdma_dealloc_pd(9)
π pvrdma_dealloc_pd(9) β from the Kernel API Manual, bestie
okay so picture this: you're deep in the kernel, it's 2am, and you gotta let go of a protection domain. yeah. that's the whole vibe of this page. it's pvrdma_dealloc_pd and honestly? she's lowkey the easiest function in the whole file. no cap.
πΈ NAME πΈ
pvrdma_dealloc_pd β deallocate protection domain. that's it. that's the girl. she deallocates. she frees the pd. iconic behaviour, no notes π
β¨ SYNOPSIS β¨
int pvrdma_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata);
yes the return type is int even though she always returns 0. we don't make the rules, the ABI does. π«Ά
π ARGUMENTS π
pdβ the protection domain that's getting released. say bye bye π this is the main character of the whole call.udataβ user data, ornullwhen it's a kernel object. so like, either there's userland context attached or there isn't. simple as that. π
β RETURN β
Always 0. literally always. no error paths, no drama, no surprises. she's a consistent queen πβ¨
fr fr, do not go writing error handling around this one thinking it'll ever hand you a negative number back. it won't. 0 is the whole personality.
π¦ SEE ALSO π¦
the kernel file where all this lives, in all her glory:
./drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
and the whole friend group, go say hi to them too:
pvrdma_query_device(9)pvrdma_query_port(9)pvrdma_query_gid(9)pvrdma_query_pkey(9)pvrdma_modify_port(9)pvrdma_alloc_ucontext(9)pvrdma_dealloc_ucontext(9)pvrdma_mmap(9)pvrdma_alloc_pd(9)pvrdma_create_ah(9)pvrdma_destroy_ah(9)
also like. notice pvrdma_alloc_pd(9) sitting right up there next to pvrdma_dealloc_pd(9)? that's her other half. you allocate, you dealloc. balance ππ§
shoutout to ./drivers/infiniband/hw/vmw_pv... for the source/version creds, and to October 2026 for the date stamp β this page is officially stamped and certified, slay ππ
π¦ 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