Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aio_ring_mremap

Proto:static int aio_ring_mremap(struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
329  file = File we map to (can be NULL).
330  mm = The address space we belong to.
332  res = -EINVAL
334  spin_lock( & ioctx_lock)
335  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
336  table = fetch RCU-protected pointer for dereferencing(ioctx_table)
337  When i < nr cycle
340  ctx = fetch RCU-protected pointer for dereferencing(table[i])
341  If ctx && aio_ring_file == file Then
342  If Not atomic_read( & dead) Then
346  Break
350  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
351  spin_unlock( & ioctx_lock)
352  Return res