diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2014-08-23 00:09:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-23 20:18:33 +0200 |
commit | 1dd0bd2b14032037d40a316dd52370f1713fa62b (patch) | |
tree | ecb081688de3079314e22dbb378892e75334992e /net/tipc/node.h | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-1dd0bd2b14032037d40a316dd52370f1713fa62b.tar.xz linux-1dd0bd2b14032037d40a316dd52370f1713fa62b.zip |
tipc: introduce new function tipc_msg_create()
The function tipc_msg_init() has turned out to be of limited value
in many cases. It take too few parameters to be usable for creating
a complete message, it makes too many assumptions about what the
message should be used for, and it does not allocate any buffer to
be returned to the caller.
Therefore, we now introduce the new function tipc_msg_create(), which
takes all the parameters needed to create a full message, and returns
a buffer of the requested size. The new function will be very useful
for the changes we will be doing in later commits in this series.
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/node.h')
0 files changed, 0 insertions, 0 deletions