Searched refs:cstr (Results 1 - 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/fs/crypto/ |
H A D | hooks.c | 310 struct fscrypt_str cstr, pstr; in fscrypt_get_symlink() local 340 cstr.name = (unsigned char *)sd->encrypted_path; in fscrypt_get_symlink() 341 cstr.len = le16_to_cpu(sd->len); in fscrypt_get_symlink() 343 if (cstr.len == 0) in fscrypt_get_symlink() 346 if (cstr.len + sizeof(*sd) - 1 > max_size) in fscrypt_get_symlink() 349 err = fscrypt_fname_alloc_buffer(cstr.len, &pstr); in fscrypt_get_symlink() 353 err = fscrypt_fname_disk_to_usr(inode, 0, 0, &cstr, &pstr); in fscrypt_get_symlink()
|
/kernel/linux/linux-6.6/fs/crypto/ |
H A D | hooks.c | 343 struct fscrypt_str cstr, pstr; in fscrypt_get_symlink() local 373 cstr.name = (unsigned char *)sd->encrypted_path; in fscrypt_get_symlink() 374 cstr.len = le16_to_cpu(sd->len); in fscrypt_get_symlink() 376 if (cstr.len == 0) in fscrypt_get_symlink() 379 if (cstr.len + sizeof(*sd) > max_size) in fscrypt_get_symlink() 382 err = fscrypt_fname_alloc_buffer(cstr.len, &pstr); in fscrypt_get_symlink() 386 err = fscrypt_fname_disk_to_usr(inode, 0, 0, &cstr, &pstr); in fscrypt_get_symlink()
|
/kernel/linux/linux-6.6/scripts/gcc-plugins/ |
H A D | gcc-common.h | 118 tree cstr, elem, index, type; in build_const_char_string() local 120 cstr = build_string(len, str); in build_const_char_string() 124 TREE_TYPE(cstr) = type; in build_const_char_string() 125 TREE_CONSTANT(cstr) = 1; in build_const_char_string() 126 TREE_READONLY(cstr) = 1; in build_const_char_string() 127 TREE_STATIC(cstr) = 1; in build_const_char_string() 128 return cstr; in build_const_char_string()
|
/kernel/linux/linux-5.10/scripts/gcc-plugins/ |
H A D | gcc-common.h | 175 tree cstr, elem, index, type; in build_const_char_string() local 177 cstr = build_string(len, str); in build_const_char_string() 181 TREE_TYPE(cstr) = type; in build_const_char_string() 182 TREE_CONSTANT(cstr) = 1; in build_const_char_string() 183 TREE_READONLY(cstr) = 1; in build_const_char_string() 184 TREE_STATIC(cstr) = 1; in build_const_char_string() 185 return cstr; in build_const_char_string()
|
/kernel/linux/linux-6.6/rust/kernel/ |
H A D | str.rs | 174 /// let cstr = CStr::from_bytes_with_nul(b"foo\0").unwrap(); 175 /// assert_eq!(cstr.to_str(), Ok("foo")); 599 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from() 602 buf.try_extend_from_slice(cstr.as_bytes_with_nul())
|
/kernel/linux/linux-5.10/tools/perf/ |
H A D | builtin-diff.c | 233 char *cstr = (char *) str; in setup_compute() local 258 cstr = buf; in setup_compute() 262 if (!strcmp(cstr, compute_names[i])) { in setup_compute()
|
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-diff.c | 233 char *cstr = (char *) str; in setup_compute() local 258 cstr = buf; in setup_compute() 262 if (!strcmp(cstr, compute_names[i])) { in setup_compute()
|
Completed in 10 milliseconds