iwpm_create_nlmsg(9)
β¨ iwpm_create_nlmsg β Kernel API Manual β¨
okay so bestie, we're in the kernel API manual today and the vibe is netlink messages. this one's iwpm_create_nlmsg, section 9 (kernel API, iykyk) π
πΈ NAME πΈ
iwpm_create_nlmsg β allocate an skb and form a netlink message π
π¦ SYNOPSIS π¦
struct sk_buff * iwpm_create_nlmsg (u32 nl_op , struct nlmsghdr **nlh ,
int nl_client );
like, that's the whole signature, copy it exactly, no cap π
π ARGUMENTS π
nl_opβ the netlink message opcode, aka which op we're doing β¨nlhβ this bad boy holds the address of the netlink message header inside the skb π«Άnl_clientβ the index of the netlink client, so it knows who you are π
π₯ DESCRIPTION π₯
Returns the newly allocated skb β or NULL if the tailroom of the skb is insufficient to store the message header and payload π
fr fr, if you get NULL back, it's not a personality flaw, the tailroom just wasn't big enough for the header and the payload. check your space before you come for it π§
π SEE ALSO π
Kernel file ./drivers/infiniband/core/iwpm_util.h
iwpm_get_nlmsg_request(9)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_parse_nlmsg(9)iwpm_print_sockaddr(9)iwpm_send_hello(9)
the whole friend group, assembled π
sign-off szn π this page lives under ./drivers/infiniband/core, and it's dated October 2026 β so yeah, bestie, we're reading from the future, obsessed β slay, go build your netlink message, and remember: NULL is a valid answer and so is walking away π
π
π¦ 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