Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kobject_uevent.c Create Date:2022-07-28 06:14:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_uevent_skb

Proto:static struct sk_buff *alloc_uevent_skb(struct kobj_uevent_env *env, const char *action_string, const char *devpath)

Type:struct sk_buff

Parameter:

TypeParameterName
struct kobj_uevent_env *env
const char *action_string
const char *devpath
283  struct sk_buff * skb = NULL
288  len = strlen(action_string) + strlen(devpath) + 2
289  skb = allocate a network buffer
290  If Not skb Then Return NULL
294  scratch = add data to a buffer
295  sprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@fmt: The format string to use*@...: Arguments for the format string* The function returns the number of characters written* into @buf
297  skb_put_data(skb, buf, buflen)
299  parms = NETLINK_CB(skb)
300  uid = GLOBAL_ROOT_UID
301  gid = GLOBAL_ROOT_GID
302  dst_group = 1
303  portid = 0
305  Return skb
Caller
NameDescribe
uevent_net_broadcast_untagged
uevent_net_broadcast_tagged