Function report |
Source Code:mm\vmpressure.c |
Create Date:2022-07-28 16:15:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:vmpressure_register_event() - Bind vmpressure notifications to an eventfd*@memcg: memcg that is interested in vmpressure notifications*@eventfd: eventfd context to link notifications with*@args: event arguments (pressure level threshold, optional mode)*
Proto:int vmpressure_register_event(struct mem_cgroup *memcg, struct eventfd_ctx *eventfd, const char *args)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mem_cgroup * | memcg | |
| struct eventfd_ctx * | eventfd | |
| const char * | args |
| 371 | ret = 0 |
| 374 | If Not spec Then |
| 388 | If token Then |
| 395 | ev = 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). |
| 396 | If Not ev Then |
| 408 | ret = 0 |
| 409 | out : |
| 411 | Return ret |
| 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 |