Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
msg.c File Reference
#include "core.h"
#include "msg.h"

Go to the source code of this file.

Functions

u32 tipc_msg_tot_importance (struct tipc_msg *m)
 
void tipc_msg_init (struct tipc_msg *m, u32 user, u32 type, u32 hsize, u32 destnode)
 
int tipc_msg_build (struct tipc_msg *hdr, struct iovec const *msg_sect, u32 num_sect, unsigned int total_len, int max_size, int usrmem, struct sk_buff **buf)
 

Function Documentation

int tipc_msg_build ( struct tipc_msg hdr,
struct iovec const msg_sect,
u32  num_sect,
unsigned int  total_len,
int  max_size,
int  usrmem,
struct sk_buff **  buf 
)

tipc_msg_build - create message using specified header and data

Note: Caller must not hold any locks in case copy_from_user() is interrupted!

Returns message data size or errno

Definition at line 75 of file msg.c.

void tipc_msg_init ( struct tipc_msg m,
u32  user,
u32  type,
u32  hsize,
u32  destnode 
)

Definition at line 54 of file msg.c.

u32 tipc_msg_tot_importance ( struct tipc_msg m)

Definition at line 40 of file msg.c.