Function report |
Source Code:fs\read_write.c |
Create Date:2022-07-28 20:01:20 |
| Last Modify:2020-03-18 10:18:51 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:new_sync_write
Proto:static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | filp | |
| const char __user * | buf | |
| size_t | len | |
| loff_t * | ppos |
| 474 | struct iovec iov = { BSD uses caddr_t (1003.1g requires void *) = (void __user * )buf, Must be size_t (1003.1g) = len} |
| 479 | init_sync_kiocb( & kiocb, filp) |
| 480 | The 'ki_filp' pointer is shared in a union for aio = If ppos Then ppos Else 0 |
| 481 | iov_iter_init( & iter, WRITE, & iov, 1, len) |
| 483 | ret = call_write_iter(filp, & kiocb, & iter) |
| 484 | BUG_ON(ret == - cb queued, will get completion event ) |
| 485 | If ret > 0 && ppos Then ppos = The 'ki_filp' pointer is shared in a union for aio |
| 487 | Return ret |
| Name | Describe |
|---|---|
| __vfs_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 |