Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:13
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_buffer_head

Proto:struct buffer_head *alloc_buffer_head(gfp_t gfp_flags)

Type:struct buffer_head

Parameter:

TypeParameterName
gfp_tgfp_flags
3385  ret = Shortcuts
3386  If ret Then
3387  Initialization list head
3388  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
3389  __this_cpu_inc(nr)
3390  recalc_bh_state()
3391  preempt_enable()
3393  Return ret
Caller
NameDescribe
alloc_page_buffersCreate the appropriate buffers when given a page for data area and* the size of each buffer