Home
last modified time | relevance | path

Searched refs:unwrap (Results 1 – 23 of 23) sorted by relevance

/linux-6.12.1/scripts/
Drustdoc_test_gen.rs51 let potential_components: Vec<&str> = file.strip_suffix("_rs").unwrap().split('_').collect(); in find_real_path()
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()
215 write!(c_test_declarations, "void {kunit_name}(struct kunit *);\n").unwrap(); in main()
[all …]
Drustdoc_test_builder.rs23 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()
Dgenerate_rust_target.rs144 if handle.read_line(&mut line).unwrap() == 0 { in from_stdin()
/linux-6.12.1/rust/kernel/
Dstr.rs546 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_to_str()
547 let checked_str = checked_cstr.to_str().unwrap(); in test_cstr_to_str()
555 let checked_cstr = CStr::from_bytes_with_nul(bad_bytes).unwrap(); in test_cstr_to_str_panic()
556 checked_cstr.to_str().unwrap(); in test_cstr_to_str_panic()
562 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_as_str_unchecked()
569 let hello_world = CStr::from_bytes_with_nul(b"hello, world!\0").unwrap(); in test_cstr_display()
571 let non_printables = CStr::from_bytes_with_nul(b"\x01\x09\x0a\0").unwrap(); in test_cstr_display()
573 let non_ascii = CStr::from_bytes_with_nul(b"d\xe9j\xe0 vu\0").unwrap(); in test_cstr_display()
575 let good_bytes = CStr::from_bytes_with_nul(b"\xf0\x9f\xa6\x80\0").unwrap(); in test_cstr_display()
586 let cstr = CStr::from_bytes_with_nul(&bytes).unwrap(); in test_cstr_display_all_bytes()
[all …]
Dtypes.rs221 self.0.take().unwrap().0 in dismiss()
237 &self.0.as_ref().unwrap().0 in deref()
244 &mut self.0.as_mut().unwrap().0 in deref_mut()
/linux-6.12.1/rust/macros/
Dvtable.rs76 .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()
Dpin_data.rs53 .unwrap(), in pin_data()
55 "Self".parse::<TokenStream>().unwrap().into_iter().collect() in pin_data()
110 .unwrap() in replace_self_and_deny_type_defs()
Dpinned_drop.rs19 nesting = nesting.checked_sub(1).unwrap(); in pinned_drop()
Dmodule.rs73 .unwrap(); in emit_base()
/linux-6.12.1/drivers/dma-buf/
DMakefile3 dma-fence-unwrap.o dma-resv.o
15 st-dma-fence-unwrap.o \
/linux-6.12.1/net/sunrpc/auth_gss/
Dgss_krb5_mech.c52 .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()
Dgss_krb5_internal.h51 u32 (*unwrap)(struct krb5_ctx *kctx, int offset, int len, member
Dgss_rpc_upcall.c67 PROC(UNWRAP, unwrap),
/linux-6.12.1/fs/ecryptfs/
DKconfig18 bool "Enable notifications for userspace key wrap/unwrap"
22 for userspace to wrap/unwrap file encryption keys by other
/linux-6.12.1/mm/kasan/
Dkasan_test_rust.rs16 v.push(0x42, GFP_KERNEL).unwrap(); in kasan_test_rust_uaf()
/linux-6.12.1/drivers/usb/gadget/function/
Du_ether.c74 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()
Du_ether.h75 int (*unwrap)(struct gether *port, member
Df_eem.c670 eem->port.unwrap = eem_unwrap; in eem_alloc()
Df_rndis.c994 rndis->port.unwrap = rndis_rm_hdr; in rndis_alloc()
Df_ncm.c1794 ncm->port.unwrap = ncm_unwrap_ntb; in ncm_alloc()
/linux-6.12.1/rust/kernel/sync/
Darc.rs346 let inner = NonNull::new(ptr as *mut ArcInner<T>).unwrap(); in borrow()
357 unsafe { Self::from_inner(NonNull::new(ptr as _).unwrap()) } in from_foreign()
/linux-6.12.1/include/trace/events/
Drpcgss.h139 DEFINE_GSSAPI_EVENT(unwrap);
210 DEFINE_SVC_GSSAPI_EVENT(unwrap);
/linux-6.12.1/Documentation/driver-api/
Ddma-buf.rst216 DMA Fence unwrap
219 .. kernel-doc:: include/linux/dma-fence-unwrap.h