Function report |
Source Code:kernel\relay.c |
Create Date:2022-07-28 11:46:47 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lay_create_buf - allocate and initialize a channel buffer*@chan: the relay channel* Returns channel buffer if successful, %NULL otherwise.
Proto:static struct rchan_buf *relay_create_buf(struct rchan *chan)
Type:struct rchan_buf
Parameter:
Type | Parameter | Name |
---|---|---|
struct rchan * | chan |
166 | If number of sub-buffers per buffer > Maximum allocatable size / size of * Then Return NULL |
169 | buf = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
170 | If Not buf Then Return NULL |
172 | padding counts per sub-buffer = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
174 | If Not padding counts per sub-buffer Then Go to free_buf |
178 | If Not start of channel buffer Then Go to free_buf |
181 | associated channel = chan |
183 | Return buf |
185 | free_buf : |
188 | Return NULL |
Name | Describe |
---|---|
relay_open_buf | lay_open_buf - create a new relay channel buffer* used by relay_open() and CPU hotplug. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |