---
name: "wimax_msg_send"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/wimax_msg_send"
---

# wimax\_msg\_send(9)

Send a pre-allocated message to user space

## NAME

wimax\_msg\_send - Send a pre-allocated message to user space

## SYNOPSIS

**int wimax\_msg\_send(struct wimax\_dev \*** *wimax\_dev***, struct sk\_buff \*** *skb***);**

## ARGUMENTS

*wimax\_dev*

WiMAX device descriptor

*skb*

struct sk\_buff returned by **wimax\_msg\_alloc**. Note the ownership of *skb* is transferred to this function.

## RETURN

0 if ok, \< 0 errno code on error

## DESCRIPTION

Sends a free-form message that was preallocated with **wimax\_msg\_alloc** and filled up.

Assumes that once you pass an skb to this function for sending, it owns it and will release it when done (on success).

IMPORTANT:

Don't use **skb\_push**/**skb\_pull**/**skb\_reserve** on the skb, as **wimax\_msg\_send** depends on skb-\>data being placed at the beginning of the user message.

Unlike other WiMAX stack calls, this call can be used way early, even before **wimax\_dev\_add** is called, as long as the wimax\_dev-\>net\_dev pointer is set to point to a proper net\_dev. This is so that drivers can use it early in case they need to send stuff around or communicate with user space.

## COPYRIGHT
