函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-29 10:55:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:io_ring_ctx_free

函数原型:static void io_ring_ctx_free(struct io_ring_ctx *ctx)

返回类型:void

参数:

类型参数名称
struct io_ring_ctx *ctx
4938  io_finish_async(ctx)
4939  如果sqo_mmmmdrop(sqo_mm)
4942  We can't just wait for polled events to come to us, we have to actively* find and complete them.
4943  io_sqe_buffer_unregister(ctx)
4944  io_sqe_files_unregister(ctx)
4945  io_eventfd_unregister(ctx)
4954  io_mem_free(rings)
4955  io_mem_free(sq_sqes)
4957  percpu_ref_exit - undo percpu_ref_init()*@ref: percpu_ref to exit* This function exits @ref
4958  如果account_memio_unaccount_mem(user, ring_pages(sq_entries, cq_entries))
4961  free_uid(user)
4962  put_cred - Release a reference to a set of credentials*@cred: The credentials to release* Release a reference to a set of credentials, deleting them when the last ref* is released
4963  释放内存
4964  释放内存
4965  kmem_cache_free(req_cachep, if all else fails... )
4966  释放内存
调用者
名称描述
io_ring_ctx_wait_and_kill