函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\skbuff.h Create Date:2022-07-27 06:52:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:skb_put_data

函数原型:static inline void *skb_put_data(struct sk_buff *skb, const void *data, unsigned int len)

返回类型:void

参数:

类型参数名称
struct sk_buff *skb
const void *data
unsigned intlen
2233  tmp等于设置数据在缓存区
2235  内存复制(tmp, data, len)
2237  返回:tmp
调用者
名称描述
alloc_uevent_skb
uevent_net_broadcast
nla_appendla_append - Add a netlink attribute without header or padding*@skb: socket buffer to add attribute to*@attrlen: length of attribute payload*@data: head of attribute payload* Returns -EMSGSIZE if the tailroom of the skb is insufficient to store