Home
last modified time | relevance | path

Searched refs:new (Results 1 – 14 of 14) sorted by relevance

/samples/rust/
A Drust_configfs.rs36 fn new() -> impl PinInit<Self, Error> { in new() method
39 bar <- new_mutex!((KBox::new([0; PAGE_SIZE], flags::GFP_KERNEL)?, 0)), in new()
63 config <- configfs::Subsystem::new( in init()
64 c_str!("rust_configfs"), item_type, Configuration::new() in init()
87 Ok(configfs::Group::new(name.try_into()?, tpe, Child::new())) in make_group()
130 fn new() -> impl PinInit<Self, Error> { in new() method
152 Ok(configfs::Group::new( in make_group()
155 GrandChild::new(), in make_group()
177 fn new() -> impl PinInit<Self, Error> { in new() method
A Drust_driver_auxiliary.rs22 [(auxiliary::DeviceId::new(MODULE_NAME, AUXILIARY_NAME), ())]
39 let this = KBox::new(Self, GFP_KERNEL)?; in probe()
65 let this = KBox::new( in probe()
68 auxiliary::Registration::new(pdev.as_ref(), AUXILIARY_NAME, 0, MODULE_NAME)?, in probe()
69 auxiliary::Registration::new(pdev.as_ref(), AUXILIARY_NAME, 1, MODULE_NAME)?, in probe()
107 _pci_driver <- driver::Registration::new(MODULE_NAME, module), in init()
108 _aux_driver <- driver::Registration::new(MODULE_NAME, module), in init()
A Drust_dma.rs35 fn new(h: u32, b: u32) -> Self { in new() method
61 let mask = DmaMask::new::<64>(); in probe()
70 kernel::dma_write!(ca[i] = MyStruct::new(value.0, value.1))?; in probe()
73 let drvdata = KBox::new( in probe()
A Drust_print_main.rs22 let a = Arc::new(1, GFP_KERNEL)?; in arc_print()
23 let b = UniqueArc::new("hello, world", GFP_KERNEL)?; in arc_print()
48 let a_i32_display: Arc<dyn Display> = Arc::new(42i32, GFP_KERNEL)?; in arc_print()
A Drust_driver_platform.rs88 [(of::DeviceId::new(c_str!("test,rust-device")), Info(42))]
95 [(acpi::DeviceId::new(c_str!("LNUXBEEF")), Info(0))]
119 let drvdata = KBox::new(Self { pdev: pdev.into() }, GFP_KERNEL)?; in probe()
A Drust_driver_faux.rs23 let reg = faux::Registration::new(c_str!("rust-faux-sample-device"), None)?; in init()
A Drust_minimal.rs24 let mut numbers = KVec::new(); in init()
A Drust_misc_device.rs184 RUST_MISC_DEV_GET_VALUE => me.get_value(UserSlice::new(arg, size).writer())?, in ioctl()
185 RUST_MISC_DEV_SET_VALUE => me.set_value(UserSlice::new(arg, size).reader())?, in ioctl()
/samples/cgroup/
A Dmemcg_event_listener.c112 long *new; in read_memcg_events() member
117 .new = &new_counters.low, in read_memcg_events()
122 .new = &new_counters.high, in read_memcg_events()
127 .new = &new_counters.max, in read_memcg_events()
132 .new = &new_counters.oom, in read_memcg_events()
137 .new = &new_counters.oom_kill, in read_memcg_events()
142 .new = &new_counters.oom_group_kill, in read_memcg_events()
169 ret = get_memcg_counter(line, map[i].name, map[i].new); in read_memcg_events()
179 if (*map[i].new > *map[i].old) { in read_memcg_events()
180 diff = *map[i].new - *map[i].old; in read_memcg_events()
[all …]
/samples/bpf/
A Dtest_lru_dist.c45 static inline void __list_add(struct list_head *new, in __list_add() argument
49 next->prev = new; in __list_add()
50 new->next = next; in __list_add()
51 new->prev = prev; in __list_add()
52 prev->next = new; in __list_add()
55 static inline void list_add(struct list_head *new, struct list_head *head) in list_add() argument
57 __list_add(new, head, head->next); in list_add()
A DREADME.rst29 It can be needed to clean tools, samples or kernel before trying new arch or
/samples/vfio-mdev/
A Dmtty.c1114 enum vfio_device_mig_state new) in mtty_step_state() argument
1134 (new == VFIO_DEVICE_STATE_RUNNING || in mtty_step_state()
1135 new == VFIO_DEVICE_STATE_STOP)) || in mtty_step_state()
1139 new == VFIO_DEVICE_STATE_PRE_COPY) || in mtty_step_state()
1141 new == VFIO_DEVICE_STATE_RUNNING_P2P)) in mtty_step_state()
1155 new == VFIO_DEVICE_STATE_STOP) { in mtty_step_state()
1166 new == VFIO_DEVICE_STATE_RUNNING) || in mtty_step_state()
1170 new == VFIO_DEVICE_STATE_STOP)) { in mtty_step_state()
1185 new == VFIO_DEVICE_STATE_PRE_COPY) || in mtty_step_state()
1189 new == VFIO_DEVICE_STATE_STOP_COPY) || in mtty_step_state()
[all …]
/samples/
A DKconfig251 bool "Build example programs that use new VFS system calls"
254 Build example userspace programs that use new VFS system calls such
280 Build example userspace program to use the new mount_notify(),
287 Build an example loadable module that adds new CoreSight features
/samples/pktgen/
A DREADME.rst26 -c : ($SKB_CLONE) SKB clones send before alloc new SKB

Completed in 26 milliseconds