1WIMAX_MSG_ALLOC(9)             Linux Networking             WIMAX_MSG_ALLOC(9)
2
3
4

NAME

6       wimax_msg_alloc - Create a new skb for sending a message to userspace
7

SYNOPSIS

9       struct sk_buff * wimax_msg_alloc(struct wimax_dev * wimax_dev,
10                                        const char * pipe_name,
11                                        const void * msg, size_t size,
12                                        gfp_t gfp_flags);
13

ARGUMENTS

15       wimax_dev
16           WiMAX device descriptor
17
18       pipe_name
19           "named pipe" the message will be sent to
20
21       msg
22           pointer to the message data to send
23
24       size
25           size of the message to send (in bytes), including the header.
26
27       gfp_flags
28           flags for memory allocation.
29

RETURNS

31       0 if ok, negative errno code on error
32

DESCRIPTION

34       Allocates an skb that will contain the message to send to user space
35       over the messaging pipe and initializes it, copying the payload.
36
37       Once this call is done, you can deliver it with wimax_msg_send.
38

IMPORTANT

40       Don't use skb_push/skb_pull/skb_reserve on the skb, as wimax_msg_send
41       depends on skb->data being placed at the beginning of the user message.
42
43       Unlike other WiMAX stack calls, this call can be used way early, even
44       before wimax_dev_add is called, as long as the wimax_dev->net_dev
45       pointer is set to point to a proper net_dev. This is so that drivers
46       can use it early in case they need to send stuff around or communicate
47       with user space.
48
50Kernel Hackers Manual 2.6.       November 2011              WIMAX_MSG_ALLOC(9)
Impressum