Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aio_private_file

Proto:static struct file *aio_private_file(struct kioctx *ctx, loff_t nr_pages)

Type:struct file

Parameter:

TypeParameterName
struct kioctx *ctx
loff_tnr_pages
238  inode = A single inode exists for all anon_inode files. Contrary to pipes,* anon_inode inodes have no associated per-instance data, so we need* only allocate one of them.
239  If IS_ERR(inode) Then Return ERR_CAST - Explicitly cast an error-valued pointer to another pointer type*@ptr: The pointer to cast.* Explicitly cast an error-valued pointer to another pointer type in such a* way as to make it clear that's what's going on.
242  a_ops = aio_ctx_aops
243  private_data = ctx
244  i_size = PAGE_SIZE * nr_pages
246  file = alloc_file_pseudo(inode, aio_mnt, "[aio]", O_RDWR, & aio_ring_fops)
248  If IS_ERR(file) Then put an inode
250  Return file
Caller
NameDescribe
aio_setup_ring