Home
last modified time | relevance | path

Searched full:nul (Results 1 – 25 of 492) sorted by relevance

12345678910>>...20

/kernel/linux/linux-6.6/drivers/s390/char/
Ddefkeymap.map5 keycode 0 = nul Oslash
6 keycode 1 = nul a
7 keycode 2 = nul b
8 keycode 3 = nul c
9 keycode 4 = nul d
10 keycode 5 = nul e
11 keycode 6 = nul f
12 keycode 7 = nul g
13 keycode 8 = nul h
14 keycode 9 = nul i
[all …]
/kernel/linux/linux-5.10/drivers/s390/char/
Ddefkeymap.map5 keycode 0 = nul Oslash
6 keycode 1 = nul a
7 keycode 2 = nul b
8 keycode 3 = nul c
9 keycode 4 = nul d
10 keycode 5 = nul e
11 keycode 6 = nul f
12 keycode 7 = nul g
13 keycode 8 = nul h
14 keycode 9 = nul i
[all …]
/kernel/linux/linux-5.10/mm/
Dmaccess.c152 * strncpy_from_kernel_nofault: - Copy a NUL terminated string from unsafe
157 * @count: Maximum number of bytes to copy, including the trailing NUL.
159 * Copies a NUL-terminated string from unsafe address to kernel buffer.
161 * On success, returns the length of the string INCLUDING the trailing NUL.
164 * trailing NUL added). If @unsafe_addr is not a valid kernel address, return
168 * sets the last byte of @dst buffer to NUL and returns @count.
251 * strncpy_from_user_nofault: - Copy a NUL terminated string from unsafe user
256 * @count: Maximum number of bytes to copy, including the trailing NUL.
258 * Copies a NUL-terminated string from unsafe user address to kernel buffer.
260 * On success, returns the length of the string INCLUDING the trailing NUL.
[all …]
/kernel/linux/linux-6.6/rust/kernel/
Dstr.rs44 /// Supplied bytes contain an interior `NUL`.
47 /// Supplied bytes are not terminated by `NUL`.
58 /// A string that is guaranteed to have exactly one `NUL` byte, which is at the
66 /// Returns the length of this string excluding `NUL`.
72 /// Returns the length of this string with `NUL`.
84 /// Returns `true` if the string only includes `NUL`.
94 /// `ptr` must be a valid pointer to a `NUL`-terminated C string, and it must
100 // to a `NUL`-terminated C string. in from_char_ptr()
104 // SAFETY: As `len` is returned by `strlen`, `bytes` does not contain interior `NUL`. in from_char_ptr()
105 // As we have added 1 to `len`, the last byte is known to be `NUL`. in from_char_ptr()
[all …]
/kernel/linux/linux-6.6/mm/
Dmaccess.c160 * strncpy_from_user_nofault: - Copy a NUL terminated string from unsafe user
165 * @count: Maximum number of bytes to copy, including the trailing NUL.
167 * Copies a NUL-terminated string from unsafe user address to kernel buffer.
169 * On success, returns the length of the string INCLUDING the trailing NUL.
172 * and the trailing NUL added).
175 * sets the last byte of @dst buffer to NUL and returns @count.
200 * strnlen_user_nofault: - Get the size of a user string INCLUDING final NUL.
202 * @count: Maximum count (including NUL)
204 * Get the size of a NUL-terminated string in user space without pagefault.
206 * Returns the size of the string INCLUDING the terminating NUL.
/kernel/linux/linux-6.6/include/linux/
Dfortify-string.h111 * strncpy - Copy a string to memory with non-guaranteed NUL padding
114 * @q: pointer to NUL-terminated source string to copy
118 * and @p will NOT be NUL-terminated
120 * If strlen(@q) < @size, following the copy of @q, trailing NUL bytes
132 * | NUL-terminated | strscpy_pad() | strscpy() |
134 * | not NUL-terminated | strtomem_pad() | strtomem() |
156 * strnlen - Return bounded count of characters in a NUL-terminated string
158 * @p: pointer to NUL-terminated string to count.
161 * Returns number of characters in @p (NOT including the final NUL), or
162 * @maxlen, if no NUL has been found up to there.
[all …]
Dstring.h305 * strtomem_pad - Copy NUL-terminated string to non-NUL-terminated buffer
308 * @src: Pointer to NUL-terminated string
312 * a NUL-terminated string, but with bounds checking on the source size, and
329 * strtomem - Copy NUL-terminated string to non-NUL-terminated buffer
332 * @src: Pointer to NUL-terminated string
335 * a NUL-terminated string, but with bounds checking on the source size, and
/kernel/linux/linux-6.6/arch/arm64/lib/
Dstrlen.S36 /* NUL detection works on the principle that (X - 1) & (~X) & 0x80
39 (X - 1) & 0x80 is zero for non-NUL ASCII characters, but gives
58 of the string for a NUL character. In order to do an unaligned ldp
59 safely we have to do a page cross check first. If there is a NUL
66 using the fast NUL check. If we encounter non-ASCII characters,
67 fallback to a second loop using the full NUL check.
115 NUL check. If we encounter non-ASCII characters, use a second
116 loop with the accurate NUL check. */
137 /* The fast check failed, so do the slower, accurate NUL check. */
190 srcin to 0x7f, so we ignore any NUL bytes before the string.
Dstrcmp.S49 /* NUL detection works on the principle that (X - 1) & (~X) & 0x80
52 Since carry propagation makes 0x1 bytes before a NUL byte appear
53 NUL too in big-endian, byte-reverse the data before the NUL check. */
78 bics has_nul, has_nul, tmp /* Non-zero if NUL terminator. */
Dstrncmp.S70 /* NUL detection works on the principle that (X - 1) & (~X) & 0x80
83 bics has_nul, tmp1, tmp2 /* Non-zero if NUL terminator. */
93 /* Limit was reached. Check if the NUL byte or the difference
120 /* Make sure that the NUL byte is marked in the syndrome. */
127 /* However, if there is no NUL byte in the dword, we can generate
136 /* Re-compute the NUL-byte detection, using a byte-reversed value. */
254 bic has_nul, has_nul, tmp3 /* Non-zero if NUL byte found in SRC1. */
274 bic has_nul, has_nul, tmp3 /* Non-zero if NUL terminator. */
/kernel/linux/linux-6.6/lib/
Dstrncpy_from_user.c44 * Note that we mask out the bytes following the NUL. This is in do_strncpy_from_user()
46 * the NUL. For those routines, we don't want to give them in do_strncpy_from_user()
47 * potentially random bytes after the NUL in `src`. in do_strncpy_from_user()
50 * as an opaque set of bytes. Without the post-NUL mask, any BPF in do_strncpy_from_user()
96 * strncpy_from_user: - Copy a NUL terminated string from userspace.
100 * @count: Maximum number of bytes to copy, including the trailing NUL.
102 * Copies a NUL-terminated string from userspace to kernel space.
105 * NUL).
Dstrnlen_user.c72 * strnlen_user: - Get the size of a user string INCLUDING final NUL.
74 * @count: Maximum count (including NUL character)
79 * Get the size of a NUL-terminated string in user space.
81 * Returns the size of the string INCLUDING the terminating NUL.
/kernel/linux/linux-5.10/lib/
Dstrncpy_from_user.c44 * Note that we mask out the bytes following the NUL. This is in do_strncpy_from_user()
46 * the NUL. For those routines, we don't want to give them in do_strncpy_from_user()
47 * potentially random bytes after the NUL in `src`. in do_strncpy_from_user()
50 * as an opaque set of bytes. Without the post-NUL mask, any BPF in do_strncpy_from_user()
96 * strncpy_from_user: - Copy a NUL terminated string from userspace.
100 * @count: Maximum number of bytes to copy, including the trailing NUL.
102 * Copies a NUL-terminated string from userspace to kernel space.
105 * NUL).
Dstring.c84 * strcpy - Copy a %NUL terminated string
107 * The result is not %NUL-terminated if the source exceeds
111 * count, the remainder of @dest will be padded with %NUL.
137 * NUL-terminated string that fits in the buffer (unless,
164 * buffer is always NUL terminated, unless it's zero-sized.
177 * * The number of characters copied (not including the trailing %NUL)
232 /* Hit buffer length without finding a NUL; force NUL-termination. */ in strscpy()
249 * buffer is always %NUL terminated, unless it's zero-sized.
258 * * The number of characters copied (not including the trailing %NUL)
277 * of dest, including src's %NUL-terminator. May overrun dest.
[all …]
Dstrnlen_user.c72 * strnlen_user: - Get the size of a user string INCLUDING final NUL.
74 * @count: Maximum count (including NUL character)
79 * Get the size of a NUL-terminated string in user space.
81 * Returns the size of the string INCLUDING the terminating NUL.
/kernel/linux/linux-6.6/arch/riscv/lib/
Dstrlen.S76 * preceding the string with the effect of adding NUL bytes at the
81 /* Convert non-NUL into 0xff and NUL into 0x00. */
84 /* Convert non-NUL into 0x00 and NUL into 0xff. */
88 * Search for the first set bit (corresponding to a NUL byte in the
/kernel/linux/linux-5.10/arch/csky/lib/
Dusercopy.c61 * __strncpy_from_user: - Copy a NUL terminated string from userspace,
66 * @count: Maximum number of bytes to copy, including the trailing NUL.
68 * Copies a NUL-terminated string from userspace to kernel space.
73 * NUL).
91 * strncpy_from_user: - Copy a NUL terminated string from userspace.
95 * @count: Maximum number of bytes to copy, including the trailing NUL.
97 * Copies a NUL-terminated string from userspace to kernel space.
100 * NUL).
123 * Get the size of a NUL-terminated string in user space.
125 * Returns the size of the string INCLUDING the terminating NUL.
/kernel/linux/linux-5.10/net/netfilter/
Dnf_conntrack_h323_types.c18 {FNAME("strict") NUL, FIXD, 0, 0, SKIP, 0, NULL},
19 {FNAME("loose") NUL, FIXD, 0, 0, SKIP, 0, NULL},
225 {FNAME("create") NUL, FIXD, 0, 0, SKIP, 0, NULL},
226 {FNAME("join") NUL, FIXD, 0, 0, SKIP, 0, NULL},
227 {FNAME("invite") NUL, FIXD, 0, 0, SKIP, 0, NULL},
228 {FNAME("capability-negotiation") NUL, FIXD, 0, 0, SKIP, 0, NULL},
229 {FNAME("callIndependentSupplementaryService") NUL, FIXD, 0, 0, SKIP,
250 {FNAME("pointToPoint") NUL, FIXD, 0, 0, SKIP, 0, NULL},
251 {FNAME("oneToN") NUL, FIXD, 0, 0, SKIP, 0, NULL},
252 {FNAME("nToOne") NUL, FIXD, 0, 0, SKIP, 0, NULL},
[all …]
/kernel/linux/linux-6.6/net/netfilter/
Dnf_conntrack_h323_types.c18 {FNAME("strict") NUL, FIXD, 0, 0, SKIP, 0, NULL},
19 {FNAME("loose") NUL, FIXD, 0, 0, SKIP, 0, NULL},
225 {FNAME("create") NUL, FIXD, 0, 0, SKIP, 0, NULL},
226 {FNAME("join") NUL, FIXD, 0, 0, SKIP, 0, NULL},
227 {FNAME("invite") NUL, FIXD, 0, 0, SKIP, 0, NULL},
228 {FNAME("capability-negotiation") NUL, FIXD, 0, 0, SKIP, 0, NULL},
229 {FNAME("callIndependentSupplementaryService") NUL, FIXD, 0, 0, SKIP,
250 {FNAME("pointToPoint") NUL, FIXD, 0, 0, SKIP, 0, NULL},
251 {FNAME("oneToN") NUL, FIXD, 0, 0, SKIP, 0, NULL},
252 {FNAME("nToOne") NUL, FIXD, 0, 0, SKIP, 0, NULL},
[all …]
/kernel/linux/linux-5.10/arch/s390/lib/
Dstring.c70 * strcpy - Copy a %NUL terminated string
92 * strlcpy - Copy a %NUL terminated string into a sized buffer
98 * NUL-terminated string that fits in the buffer (unless,
118 * strncpy - Copy a length-limited, %NUL-terminated string
123 * The result is not %NUL-terminated if the source exceeds
138 * strcat - Append one %NUL-terminated string to another
163 * strlcat - Append a length-limited, %NUL-terminated string to another
189 * strncat - Append a length-limited, %NUL-terminated string to another
279 * strstr - Find the first substring in a %NUL terminated string
/kernel/linux/linux-6.6/Documentation/process/
Ddeprecated.rst120 NUL or newline terminated.
131 the destination, but rather a count of non-NUL bytes copied (or negative
134 strncpy() on NUL-terminated strings
137 be NUL terminated. This can lead to various linear read overflows and
138 other misbehavior due to the missing termination. It also NUL-pads
141 for callers using only NUL-terminated strings.
143 When the destination is required to be NUL-terminated, the replacement is
146 destination, but rather a count of non-NUL bytes copied (or negative
147 errno when it truncates). Any cases still needing NUL-padding should
150 If a caller is using non-NUL-terminated strings, strtomem() should be
[all …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/mediactl/
Dmedia-ioc-device-info.rst51 - Name of the driver implementing the media API as a NUL-terminated
61 - Device model name as a NUL-terminated UTF-8 string. The device
67 - Serial number as a NUL-terminated ASCII string.
71 - Location of the device in the system as a NUL-terminated ASCII
/kernel/linux/linux-6.6/Documentation/userspace-api/media/mediactl/
Dmedia-ioc-device-info.rst51 - Name of the driver implementing the media API as a NUL-terminated
61 - Device model name as a NUL-terminated UTF-8 string. The device
67 - Serial number as a NUL-terminated ASCII string.
71 - Location of the device in the system as a NUL-terminated ASCII
/kernel/linux/linux-6.6/arch/s390/lib/
Dstring.c80 * strcpy - Copy a %NUL terminated string
104 * strncpy - Copy a length-limited, %NUL-terminated string
109 * The result is not %NUL-terminated if the source exceeds
124 * strcat - Append one %NUL-terminated string to another
151 * strlcat - Append a length-limited, %NUL-terminated string to another
177 * strncat - Append a length-limited, %NUL-terminated string to another
250 * strstr - Find the first substring in a %NUL terminated string
/kernel/linux/linux-5.10/Documentation/process/
Ddeprecated.rst105 NUL or newline terminated.
116 the destination, but rather a count of non-NUL bytes copied (or negative
119 strncpy() on NUL-terminated strings
122 be NUL terminated. This can lead to various linear read overflows and
123 other misbehavior due to the missing termination. It also NUL-pads
126 for callers using only NUL-terminated strings. The safe replacement is
129 destination, but rather a count of non-NUL bytes copied (or negative
130 errno when it truncates). Any cases still needing NUL-padding should
133 If a caller is using non-NUL-terminated strings, strncpy() can
143 if a source string is not NUL-terminated. The safe replacement is strscpy(),

12345678910>>...20