函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kobject_uevent.c Create Date:2022-07-27 07:12:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:uevent_net_broadcast

函数原型:static int uevent_net_broadcast(struct sock *usk, struct sk_buff *skb, struct netlink_ext_ack *extack)

返回类型:int

参数:

类型参数名称
struct sock *usk
struct sk_buff *skb
struct netlink_ext_ack *extack
690  ret等于snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
691  如果ret小于0或ret大于等于buf的长度则返回:负ENOMEM
693  ret自加
696  如果lenret大于uffer for the variables
697  Always use this macro, this allows later putting the* message into a separate section or such for things* like translation or listing all possible messages.* Currently string formatting is not supported (due* to the lack of an output buffer.)(extack, "uevent message too big")
698  返回:负EINVAL
702  skbc等于复制并扩展sk_buff
703  如果非skbc则返回:负ENOMEM
707  skb_put_data(skbc, buf, ret)
710  从缓存区顶部移除数据
713  portid等于0
714  dst_group等于1
716  ret等于netlink_broadcast(usk, skbc, 0, 1, GFP_KERNEL)
718  如果ret恒等于负ENOBUFSret恒等于负ESRCHret等于0
721  返回:ret
调用者
名称描述
uevent_net_rcv_skb