Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\do_mounts.c Create Date:2022-07-28 13:56:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:match_dev_by_uuid - callback for finding a partition using its uuid*@dev: device passed in by the caller*@data: opaque pointer to the desired struct uuidcmp to match* Returns 1 if the device matches, and 0 otherwise.

Proto:static int match_dev_by_uuid(struct device *dev, const void *data)

Type:int

Parameter:

TypeParameterName
struct device *dev
const void *data
80  cmp = data
81  part = dev_to_part(dev)
83  If Not info Then Go to no_match
86  If strncasecmp - Case insensitive, length-limited string comparison*@s1: One string*@s2: The other string*@len: the maximum number of characters to compare Then Go to no_match
89  Return 1
90  no_match :
91  Return 0