Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:12:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:DO NOT USE IN NEW FILES.* Parse input and register new cgroup event handler.* Input must be in format '<event_fd> <control_fd> <args>'.* Interpretation of args is defined by control file implementation.
Proto:static ssize_t memcg_write_event_control(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct kernfs_open_file * | of | |
char * | buf | |
size_t | nbytes | |
loff_t | off |
4505 | memcg = mem_cgroup_from_css(css) |
4527 | event = 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). |
4533 | init_poll_funcptr( & All fields below needed to unregister event when* userspace closes eventfd., memcg_event_ptable_queue_proc) |
4534 | init_waitqueue_func_entry( & wait, Gets called on EPOLLHUP on eventfd when user closes it.* Called with wqh->lock held and interrupts disabled.) |
4538 | If Not file Then |
4544 | If IS_ERR(ventfd to signal userspace about the event.) Then |
4546 | Go to out_put_efile |
4550 | If Not file Then |
4552 | Go to out_put_eventfd |
4557 | ret = inode_permission(file_inode(file), MAY_READ) |
4558 | If ret < 0 Then Go to out_put_cfile |
4583 | Else |
4585 | Go to out_put_cfile |
4596 | If IS_ERR(cfile_css) Then Go to out_put_cfile |
4600 | Go to out_put_cfile |
4604 | If ret Then Go to out_put_css |
4609 | spin_lock( & event_list_lock) |
4611 | spin_unlock( & event_list_lock) |
4616 | Return nbytes |
4618 | out_put_css : |
4620 | out_put_cfile : |
4622 | out_put_eventfd : |
4624 | out_put_efile : |
4626 | out_kfree : |
4629 | 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 |