Function report |
Source Code:fs\drop_caches.c |
Create Date:2022-07-28 20:31:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:drop_caches_sysctl_handler
Proto:int drop_caches_sysctl_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ctl_table * | table | |
| int | write | |
| void __user * | buffer | |
| size_t * | length | |
| loff_t * | ppos |
| 57 | If write Then |
| 65 | drop_slab() |
| 68 | If Not stfu Then |
| 69 | pr_info("%s (%d): drop_caches: %d\n", comm, task_pid_nr(current process), A global variable is a bit ugly, but it keeps the code simple ) |
| 75 | Return 0 |
| 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 |