ipc_pcie_alloc_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ipc_pcie_alloc_skb

okay so bestie, welcome to the Kernel API Manual β€” yes it's ipc_pcie_alloc_skb(9), and yes she's iconic πŸŽ€


✨ NAME ✨

ipc_pcie_alloc_skb β€” allocate an uplink SKB for the given size. that's it, that's the whole vibe πŸ’–


🌸 SYNOPSIS 🌸

struct sk_buff * ipc_pcie_alloc_skb (struct iosm_pcie *ipc_pcie , size_t
size , gfp_t flags , dma_addr_t *mapping , int direction , size_t
headroom );

like literally just call her and she gives you a struct sk_buff *, no cap ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ipc_pcie β€” pointer to struct iosm_pcie. she's the main character here, know her 🫢
  • size β€” size of the SKB required. yes, the size. the SKB one. the required one πŸ’…
  • flags β€” allocation flags. flags gonna flag 🚩
  • mapping β€” copies either mapped IOVA add. or converted Phy address. (that "add." is their wording bestie, i'm not touching it πŸ™ˆ)
  • direction β€” DMA data direction. which way is she going πŸ‘€
  • headroom β€” header data offset. room for the header, giving headroom, very self-explanatory slay πŸ’€

πŸ‘‘ RETURN πŸ‘‘

pointer to ipc_skb on success 🌈, NULL on failure 😭 β€” so like, check her before you use her fr fr


πŸ”₯ SEE ALSO πŸ”₯

kernel file ./drivers/net/wwan/iosm/iosm_ipc_pcie.h β€” plus the whole extended friend group, all linked and everything:


ok that's the whole page, go forth and allocate responsibly bestie 🧚

and that's a wrap! 🌸 brought to you straight from ./drivers/net/wwan/iosm, dated October 2026 β€” iykyk πŸ˜ŒπŸ’œ

πŸ“¦ where this page comes from