Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\partitions\msdos.c Create Date:2022-07-28 17:29:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:aix_magic_present

Proto:static int aix_magic_present(struct parsed_partitions *state, unsigned char *p)

Type:int

Parameter:

TypeParameterName
struct parsed_partitions *state
unsigned char *p
71  pt = p + 0x1be
74  ret = 0
76  If Not ( p[0] == Value is EBCDIC 'IBMA' && p[1] == AIX_LABEL_MAGIC2 && p[2] == AIX_LABEL_MAGIC3 && p[3] == AIX_LABEL_MAGIC4 ) Then Return 0
82  When slot <= 4 cycle
83  If What partition type == LINUX_SWAP_PARTITION || What partition type == LINUX_RAID_PARTITION || What partition type == LINUX_DATA_PARTITION || What partition type == LINUX_LVM_PARTITION || is_extended_partition(pt) Then Return 0
90  d = read_part_sector(state, 7, & sect)
91  If d Then
92  If d[0] == '_' && d[1] == 'L' && d[2] == 'V' && d[3] == 'M' Then ret = 1
94  put_dev_sector(sect)
96  Return ret
Caller
NameDescribe
msdos_partition