Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-28 20:22:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:io_ring_ctx_free

Proto:static void io_ring_ctx_free(struct io_ring_ctx *ctx)

Type:void

Parameter:

TypeParameterName
struct io_ring_ctx *ctx
4938  io_finish_async(ctx)
4939  If sqo_mm Then mmdrop(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  If account_mem Then io_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  kfree( 0 is for ctx quiesce/reinit/free, 1 is for sqo_thread started )
4964  kfree(cancel_hash)
4965  kmem_cache_free(req_cachep, if all else fails... )
4966  kfree(ctx)
Caller
NameDescribe
io_ring_ctx_wait_and_kill