Lines Matching refs:s
55 char *kstrdup(const char *s, gfp_t gfp) in kstrdup() argument
60 if (!s) in kstrdup()
63 len = strlen(s) + 1; in kstrdup()
66 memcpy(buf, s, len); in kstrdup()
82 const char *kstrdup_const(const char *s, gfp_t gfp) in kstrdup_const() argument
84 if (is_kernel_rodata((unsigned long)s)) in kstrdup_const()
85 return s; in kstrdup_const()
87 return kstrdup(s, gfp); in kstrdup_const()
101 char *kstrndup(const char *s, size_t max, gfp_t gfp) in kstrndup() argument
106 if (!s) in kstrndup()
109 len = strnlen(s, max); in kstrndup()
112 memcpy(buf, s, len); in kstrndup()
148 char *kmemdup_nul(const char *s, size_t len, gfp_t gfp) in kmemdup_nul() argument
152 if (!s) in kmemdup_nul()
157 memcpy(buf, s, len); in kmemdup_nul()
223 char *strndup_user(const char __user *s, long n) in strndup_user() argument
228 length = strnlen_user(s, n); in strndup_user()
236 p = memdup_user(s, length); in strndup_user()