Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\word-at-a-time.h Create Date:2022-07-28 06:00:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:create_zero_mask

Proto:static inline unsigned long create_zero_mask(unsigned long bits)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longbits
61  bits = bits - 1 & ~bits
62  Return bits >> 7
Caller
NameDescribe
strscpystrscpy - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The
do_strncpy_from_userDo a strncpy, return length of string without final '\0'.* 'count' is the user-supplied count (return 'count' if we* hit it), 'max' is the address space maximum (and we return* -EFAULT if we hit it).
do_strnlen_userDo a strnlen, return length of string *with* final '\0'.* 'count' is the user-supplied count, while 'max' is the* address space maximum.* Return 0 for exceptions (which includes hitting the address* space maximum), or 'count+1' if hitting the user-supplied