RDMA_WRITE_CM_EVENT(3)
π RDMA_WRITE_CM_EVENT π
okay bestie, so this is rdma_write_cm_event(3) from the Librdmacm Programmer's Manual and honestly? it's giving "tiny function, big vibes" β¨
πΈ NAME πΈ
RDMA_WRITE_CM_EVENT</ppurple> β Write an event into a CM. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
#include <rdma/rdma_cma.h>
int rdma_write_cm_event(struct rdma_cm_id *id, enum rdma_cm_event_type
event, int status, uint64_t arg);
look at her. four args. no drama. no cap π«Ά
π ARGUMENTS π
idβ the RDMA identifier that's linked to therdma_cm_eventwe're reporting. like, which CM are we talking to? this one. her. πeventβ the communication event value you wanna report. bestie, set this toRDMA_CM_EVENT_USER. that's the one. don't freestyle it πstatusβ the status value that gets reported in therdma_cm_event. spill the status, girl.argβ a user-specified value that gets reported in therdma_cm_event. it's yours, it's custom, it's your little signature on the event π
π¦ DESCRIPTION π¦
Write an event into a CM, with a status and an argument.
yep. that's the whole description. short queen behavior, we respect it π
π₯ RETURN VALUE π₯
- On success,
0is returned. slay β¨ - On error,
-1is returned, anderrnowill be set to indicate the failure reason. so if something goes wrong, checkerrno, she'll tell you what happened π
π NOTES π
okay so here's the tea β β this call lets an application write a user-defined event to the event channel associated with the specified rdma_cm_id.
Valid user events are, and I cannot stress this enough: RDMA_CM_EVENT_USER. that's the list. that's the whole list π
Applications may use this for internal signaling purposes β like, imagine waking a thread that's just chilling, blocked on the event channel. yeah. that's the move. poke your thread, make it do stuff, main character energy fr fr π«Ά
π SEE ALSO π
rdma_get_cm_event(3)β go read that one too, bestie, they're a package deal π
π AUTHOR π
Mark Zhang <<markzhang@nvidia.com>> β legend behavior, we thank her for her service π«‘π
and that's the page!! written on 2025-02-06, brought to you by the good people of the Librdmacm Programmer's Manual β thanks for reading, bestie, now go write some events π β¨π¦
π¦ where this page comes from
- arch rolling: rdma-core 65.0-1 Β· GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-MIT AND GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-FreeBSD AND GPL-2.0-or-later OR LicenseRef-Intel-BSD-3-Clause AND GPL-2.0-or-later OR LicenseRef-PathScale-BSD-Patent-License AND CC0-1.0 AND MIT AND BSD-2-Clause AND CPL-1.0 OR BSD-2-Clause OR GPL-2.0-or-later
- nixpkgs unstable: rdma-core 65.0
- ubuntu stonking: librdmacm-dev 64.0-1ubuntu1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms