函数逻辑报告 |
Source Code:fs\aio.c |
Create Date:2022-07-29 10:53:26 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:aio_read_events_ring* Pull an event off of the ioctx's event ring. Returns the number of* events fetched
函数原型:static long aio_read_events_ring(struct kioctx *ctx, struct io_event __user *event, long nr)
返回类型:long
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct kioctx * | ctx | |
| struct io_event __user * | event | |
| long | nr |
| 1178 | ret等于0 |
| 1187 | sched_annotate_sleep() |
| 1188 | mutex_lock( & ring_lock) |
| 1191 | ring等于kmap_atomic(ring_pages[0]) |
| 1194 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(ring) |
| 1200 | smp_rmb() |
| 1202 | pr_debug("h%u t%u m%u\n", head, tail, Size of ringbuffer, in units of struct io_event ) |
| 1219 | pos等于head加AIO_EVENTS_OFFSET |
| 1220 | page等于ring_pages[pos / AIO_EVENTS_PER_PAGE] |
| 1221 | pos取模等于AIO_EVENTS_PER_PAGE |
| 1224 | avail等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(long, avail, AIO_EVENTS_PER_PAGE - pos) |
| 1231 | 如果此条件成立可能性小(为编译器优化)(copy_ret)则 |
| 1241 | ring等于kmap_atomic(ring_pages[0]) |
| 1243 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(ring) |
| 1244 | flush_dcache_page(ring_pages[0]) |
| 1247 | out : |
| 1250 | 返回:ret |
| 名称 | 描述 |
|---|---|
| aio_read_events |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |