Function report |
Source Code:fs\io_uring.c |
Create Date:2022-07-28 20:22:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:io_get_req
Proto:static struct io_kiocb *io_get_req(struct io_ring_ctx *ctx, struct io_submit_state *state)
Type:struct io_kiocb
Parameter:
Type | Parameter | Name |
---|---|---|
struct io_ring_ctx * | ctx | |
struct io_submit_state * | state |
884 | If Not state Then |
885 | req = kmem_cache_alloc(req_cachep, gfp) |
886 | If Value for the false possibility is greater at compile time(!req) Then Go to fallback |
888 | Else if Not free_reqs Then |
899 | If Value for the false possibility is greater at compile time(ret <= 0) Then |
900 | * io_kiocb alloc cache[0] = kmem_cache_alloc(req_cachep, gfp) |
901 | If Not * io_kiocb alloc cache[0] Then Go to fallback |
903 | ret = 1 |
906 | cur_req = 1 |
907 | req = * io_kiocb alloc cache[0] |
908 | Else |
914 | got_it : |
915 | io = NULL |
916 | ring_file = NULL |
917 | file = NULL |
919 | flags = 0 |
922 | result = 0 |
923 | INIT_IO_WORK( & work, io_wq_submit_work) |
924 | Return req |
925 | fallback : |
926 | req = io_get_fallback_req(ctx) |
930 | Return NULL |
Name | Describe |
---|---|
io_submit_sqes |
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 |