Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\msgutil.c Create Date:2022-07-28 16:52:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_msg

Proto:static struct msg_msg *alloc_msg(size_t len)

Type:struct msg_msg

Parameter:

TypeParameterName
size_tlen
52  alen = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(len, DATALEN_MSG)
53  msg = Allocation memory
54  If (msg == NULL) Then Return NULL
57  next = NULL
58  security = NULL
60  len -= alen
61  pseg = next
62  When len > 0 cycle
65  cond_resched()
67  alen = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(len, DATALEN_SEG)
68  seg = Allocation memory
69  If (seg == NULL) Then Go to out_err
71  pseg = seg
72  next = NULL
73  pseg = next
74  len -= alen
77  Return msg
79  out_err :
80  free_msg(msg)
81  Return NULL
Caller
NameDescribe
load_msg