Query: wimax_msg_alloc
OS: centos
Section: 9
Links: centos man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
WIMAX_MSG_ALLOC(9) Linux Networking WIMAX_MSG_ALLOC(9)NAMEwimax_msg_alloc - Create a new skb for sending a message to userspaceSYNOPSISstruct sk_buff * wimax_msg_alloc(struct wimax_dev * wimax_dev, const char * pipe_name, const void * msg, size_t size, gfp_t gfp_flags);ARGUMENTSwimax_dev WiMAX device descriptor pipe_name "named pipe" the message will be sent to msg pointer to the message data to send size size of the message to send (in bytes), including the header. gfp_flags flags for memory allocation.RETURNS0 if ok, negative errno code on errorDESCRIPTIONAllocates an skb that will contain the message to send to user space over the messaging pipe and initializes it, copying the payload. Once this call is done, you can deliver it with wimax_msg_send.IMPORTANTDon'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.COPYRIGHTKernel Hackers Manual 3.10 June 2014 WIMAX_MSG_ALLOC(9)
Related Man Pages |
---|
usb_interrupt_msg(9) - suse |
struct_wimax_dev(9) - centos |
usb_interrupt_msg(9) - centos |
wimax_msg_alloc(9) - centos |
struct_wimax_dev(9) - suse |
Similar Topics in the Unix Linux Community |
---|
How can I get data in the sk_buff? |
ns3 |
How to send data to previous program (pipe)? |