Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\string.c Create Date:2022-07-28 06:00:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:memchr_inv - Find an unmatching character in an area of memory.*@start: The memory area*@c: Find a character other than c*@bytes: The size of the area.* returns the address of the first character other than @c, or %NULL

Proto:void *memchr_inv(const void *start, int c, size_t bytes)

Type:void

Parameter:

TypeParameterName
const void *start
intc
size_tbytes
1032  value = c
1036  If bytes <= 16 Then Return check_bytes8(start, value, bytes)
1039  value64 = value
1046  value64 |= value64 << 8
1047  value64 |= value64 << 16
1048  value64 |= value64 << 32
1051  prefix = start % 8
1052  If prefix Then
1055  prefix = 8 - prefix
1056  r = check_bytes8(start, value, prefix)
1057  If r Then Return r
1059  start += prefix
1060  bytes -= prefix
1063  words = bytes / 8
1065  When words cycle
1066  If start != value64 Then Return check_bytes8(start, value, 8)
1068  start += 8
1069  words--
1072  Return check_bytes8(start, value, bytes % 8)
Caller
NameDescribe
is_zeroed
do_test
do_remove_keyTry to remove an fscrypt master encryption key
fscrypt_ioctl_get_key_statusRetrieve the status of an fscrypt master encryption key
fscrypt_supported_policy
fsverity_ioctl_enablesverity_ioctl_enable() - enable verity on a file* Enable fs-verity on a file. See the "FS_IOC_ENABLE_VERITY" section of* Documentation/filesystems/fsverity.rst for the documentation.* Return: 0 on success, -errno on failure
fsverity_create_infoValidate the given fsverity_descriptor and create a new fsverity_info from* it. The signature (if present) is also checked.