Function report |
Source Code:kernel\sched\psi.c |
Create Date:2022-07-28 09:47:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:psi_write
Proto:static ssize_t psi_write(struct file *file, const char __user *user_buf, size_t nbytes, enum psi_res res)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
const char __user * | user_buf | |
size_t | nbytes | |
enum psi_res | res |
1199 | If static_branch_likely( & psi_disabled) Then Return -EOPNOTSUPP |
1205 | buf_size = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(nbytes, size of buf ) |
1206 | If copy_from_user(buf, user_buf, buf_size) Then Return -EFAULT |
1211 | new = psi_trigger_create( & psi_system, buf, nbytes, res) |
1217 | mutex_lock( & lock) |
1218 | psi_trigger_replace( & private, new) |
1219 | mutex_unlock( & lock) |
1221 | Return nbytes |
Name | Describe |
---|---|
psi_io_write | |
psi_memory_write | |
psi_cpu_write |
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 |