Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bdi_alloc_node

Proto:struct backing_dev_info *bdi_alloc_node(gfp_t gfp_mask, int node_id)

Type:struct backing_dev_info

Parameter:

TypeParameterName
gfp_tgfp_mask
intnode_id
872  bdi = kmalloc_node(sizeof(structbacking_dev_info), gfp_mask | __GFP_ZERO, node_id)
874  If Not bdi Then Return NULL
877  If bdi_init(bdi) Then
878  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
879  Return NULL
881  Return bdi