Searched hist:f3515741 (Results 1 - 2 of 2) sorted by relevance
/linux-master/include/linux/ | ||
H A D | string.h | diff f3515741 Tue Jul 04 10:25:02 MDT 2017 David Howells <dhowells@redhat.com> Provide a function to create a NUL-terminated string from unterminated data Provide a function, kmemdup_nul(), that will create a NUL-terminated string from an unterminated character array where the length is known in advance. This is better than kstrndup() in situations where we already know the string length as the strnlen() in kstrndup() is superfluous. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> |
/linux-master/mm/ | ||
H A D | util.c | diff f3515741 Tue Jul 04 10:25:02 MDT 2017 David Howells <dhowells@redhat.com> Provide a function to create a NUL-terminated string from unterminated data Provide a function, kmemdup_nul(), that will create a NUL-terminated string from an unterminated character array where the length is known in advance. This is better than kstrndup() in situations where we already know the string length as the strnlen() in kstrndup() is superfluous. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> |
Completed in 193 milliseconds