iwpm_get_nlmsg_request(9)
π iwpm_get_nlmsg_request β the kernel API manual, but make it make sense
okay so bestie, welcome to iwpm_get_nlmsg_request(9), a page from the Kernel API Manual. yes, section 9. no, that's not a typo, that's just where kernel functions live. get comfy π«Ά
β¨ NAME β¨
iwpm_get_nlmsg_request β allocate and initialize a netlink message request. that's it, that's the whole job. she's a builder, she's a starter, she gets you set up π₯
πΈ SYNOPSIS πΈ
struct iwpm_nlmsg_request * iwpm_get_nlmsg_request (__u32 nlmsg_seq , u8
nl_client , gfp_t gfp );
look at her. three args, one pointer out. icon behavior honestly π
π ARGUMENTS π
nlmsg_seqβ the sequence number of the netlink message. it's a__u32, it's the vibe check for which message you're talking about π«nl_clientβ the index of the netlink client. au8, so like, small but mighty π¦gfpβ agfp_t, and it tells the kernel how the memory for the request should be allocated. think of it as the "how much can we get away with right now" knob π§
π DESCRIPTION π
so basically: this function returns the newly allocated netlink request object if it worked. and if it didn't work? it returns NULL. that's the whole thing. no dramatic twist, no hidden clause, no weird footnote. success = shiny new request object, failure = NULL, no in-between π
lowkey refreshing ngl π
π₯ SEE ALSO π₯
the kernel file lives at:
./drivers/infiniband/core/iwpm_util.h
and here's the whole friend group, like a full-on group chat of related calls β all in section 9 fr fr:
iwpm_free_nlmsg_request(9)iwpm_find_nlmsg_request(9)iwpm_wait_complete_req(9)iwpm_get_nlmsg_seq(9)iwpm_add_remote_info(9)iwpm_check_registration(9)iwpm_set_registration(9)iwpm_get_registration(9)iwpm_send_mapinfo(9)iwpm_mapinfo_available(9)iwpm_compare_sockaddr(9)iwpm_validate_nlmsg_attr(9)iwpm_create_nlmsg(9)iwpm_parse_nlmsg(9)iwpm_print_sockaddr(9)iwpm_send_hello(9)
okay iwpm_send_hello(9) is sending me, she's just saying hi ππ«Ά
π little sign-off from your girl: this page is filed under ./drivers/infiniband/core, dated October 2026. slay. go allocate something responsibly, bestie π
β¨
π¦ 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