| /linux-6.15/scripts/ |
| H A D | rustdoc_test_gen.rs | 105 valid_paths[0].to_str().unwrap() in find_real_path() 109 let srctree = std::env::var("srctree").unwrap(); in main() 113 .unwrap() in main() 114 .map(|entry| entry.unwrap().path()) in main() 131 let name = path.file_name().unwrap().to_str().unwrap().to_string(); in main() 134 let (file, line) = name.rsplit_once('_').unwrap().0.rsplit_once('_').unwrap(); in main() 156 File::open(path).unwrap().read_to_string(&mut body).unwrap(); in main() 213 .unwrap(); in main() 216 write!(c_test_cases, " KUNIT_CASE({kunit_name}),\n").unwrap(); in main() 232 .unwrap(); in main() [all …]
|
| H A D | rustdoc_test_builder.rs | 23 stdin.read_to_string(&mut body).unwrap(); in main() 67 let name = rustdoc_function_name.split_once("_rust_kernel_").unwrap().1; in main() 71 std::fs::write(path, body.as_bytes()).unwrap(); in main()
|
| H A D | generate_rust_target.rs | 144 if handle.read_line(&mut line).unwrap() == 0 { in from_stdin() 175 .unwrap() in rustc_version_atleast() 177 .unwrap(); in rustc_version_atleast()
|
| /linux-6.15/rust/macros/ |
| H A D | kunit.rs | 61 let config_kunit = "#[cfg(CONFIG_KUNIT)]".to_owned().parse().unwrap(); in kunit_tests() 106 writeln!(kunit_macros, "{kunit_wrapper}").unwrap(); in kunit_tests() 111 .unwrap(); in kunit_tests() 114 writeln!(kunit_macros).unwrap(); in kunit_tests() 120 .unwrap(); in kunit_tests() 126 .unwrap(); in kunit_tests() 151 new_body.extend::<TokenStream>(kunit_macros.parse().unwrap()); in kunit_tests()
|
| H A D | vtable.rs | 76 .unwrap(); in vtable() 87 write!(const_items, "const {gen_const_name}: bool = true;").unwrap(); in vtable() 91 let new_body = vec![const_items.parse().unwrap(), body.stream()] in vtable()
|
| H A D | export.rs | 11 .unwrap(); in export()
|
| H A D | module.rs | 73 .unwrap(); in emit_base()
|
| /linux-6.15/rust/kernel/ |
| H A D | str.rs | 584 String(CString::try_from_fmt(args).unwrap()) in from_fmt() 592 self.0.to_str().unwrap() in deref() 619 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_to_str() 620 let checked_str = checked_cstr.to_str().unwrap(); in test_cstr_to_str() 628 let checked_cstr = CStr::from_bytes_with_nul(bad_bytes).unwrap(); in test_cstr_to_str_panic() 629 checked_cstr.to_str().unwrap(); in test_cstr_to_str_panic() 635 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_as_str_unchecked() 643 let hello_world = CStr::from_bytes_with_nul(b"hello, world!\0").unwrap(); in test_cstr_display() 647 let non_ascii = CStr::from_bytes_with_nul(b"d\xe9j\xe0 vu\0").unwrap(); in test_cstr_display() 660 let cstr = CStr::from_bytes_with_nul(&bytes).unwrap(); in test_cstr_display_all_bytes() [all …]
|
| H A D | types.rs | 216 self.0.take().unwrap().0 in dismiss() 232 &self.0.as_ref().unwrap().0 in deref() 239 &mut self.0.as_mut().unwrap().0 in deref_mut()
|
| /linux-6.15/drivers/dma-buf/ |
| H A D | Makefile | 3 dma-fence-unwrap.o dma-resv.o 15 st-dma-fence-unwrap.o \
|
| /linux-6.15/rust/pin-init/internal/src/ |
| H A D | pin_data.rs | 56 .unwrap(), in pin_data() 58 "Self".parse::<TokenStream>().unwrap().into_iter().collect() in pin_data() 113 .unwrap() in replace_self_and_deny_type_defs()
|
| H A D | pinned_drop.rs | 22 nesting = nesting.checked_sub(1).unwrap(); in pinned_drop()
|
| /linux-6.15/net/sunrpc/auth_gss/ |
| H A D | gss_krb5_mech.c | 52 .unwrap = gss_krb5_unwrap_v2, 81 .unwrap = gss_krb5_unwrap_v2, 120 .unwrap = gss_krb5_unwrap_v2, 146 .unwrap = gss_krb5_unwrap_v2, 175 .unwrap = gss_krb5_unwrap_v2, 201 .unwrap = gss_krb5_unwrap_v2, 592 return kctx->gk5e->unwrap(kctx, offset, len, buf, in gss_krb5_unwrap()
|
| H A D | gss_krb5_internal.h | 51 u32 (*unwrap)(struct krb5_ctx *kctx, int offset, int len, member
|
| H A D | gss_rpc_upcall.c | 67 PROC(UNWRAP, unwrap),
|
| /linux-6.15/fs/ecryptfs/ |
| H A D | Kconfig | 18 bool "Enable notifications for userspace key wrap/unwrap" 22 for userspace to wrap/unwrap file encryption keys by other
|
| /linux-6.15/rust/pin-init/examples/ |
| H A D | static_init.rs | 60 Some(f) => unsafe { f.__pinned_init(ptr).unwrap() }, in deref() 89 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
|
| H A D | big_struct_in_place.rs | 37 .unwrap(); in main()
|
| H A D | pthread_mutex.rs | 149 let mtx: Pin<Arc<PThreadMutex<usize>>> = Arc::try_pin_init(PThreadMutex::new(0)).unwrap(); in main()
|
| H A D | mutex.rs | 181 let mtx: Pin<Arc<CMutex<usize>>> = Arc::pin_init(CMutex::new(0)).unwrap(); in main()
|
| /linux-6.15/mm/kasan/ |
| H A D | kasan_test_rust.rs | 16 v.push(0x42, GFP_KERNEL).unwrap(); in kasan_test_rust_uaf()
|
| /linux-6.15/rust/pin-init/src/ |
| H A D | __internal.rs | 206 let value = value.unwrap(); in stack_init_reuse() 213 let value = value.unwrap(); in stack_init_reuse()
|
| /linux-6.15/drivers/usb/gadget/function/ |
| H A D | u_ether.c | 74 int (*unwrap)(struct gether *, member 233 if (dev->unwrap) { in rx_complete() 238 status = dev->unwrap(dev->port_usb, in rx_complete() 1148 dev->unwrap = link->unwrap; in gether_connect() 1238 dev->unwrap = NULL; in gether_disconnect()
|
| H A D | u_ether.h | 75 int (*unwrap)(struct gether *port, member
|
| /linux-6.15/include/trace/events/ |
| H A D | rpcgss.h | 139 DEFINE_GSSAPI_EVENT(unwrap); 210 DEFINE_SVC_GSSAPI_EVENT(unwrap);
|