Home
last modified time | relevance | path

Searched defs:new (Results 1 – 23 of 23) sorted by relevance

/rust/kernel/block/mq/
Draw_writer.rs20 fn new(buffer: &'a mut [u8]) -> Result<RawWriter<'a>> { in new() method
Dtag_set.rs37 pub fn new( in new() method
Dgen_disk.rs36 pub fn new() -> Self { in new() method
/rust/kernel/list/
Darc_field.rs28 pub fn new(value: T) -> Self { in new() method
Darc.rs172 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() method
476 pub fn new() -> impl PinInit<Self> { in new() method
/rust/kernel/init/
D__internal.rs208 pub unsafe fn new(ptr: *mut T) -> Self { in new() method
232 pub unsafe fn new() -> Self { in new() method
248 pub fn new() -> Self { in new() method
/rust/kernel/sync/lock/
Dglobal.rs46 pub const unsafe fn new(data: B::Item) -> Self { in new() method
144 pub fn new(val: T) -> Self { in new() method
/rust/kernel/sync/
Dlocked_by.rs102 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new() method
Dpoll.rs76 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new() method
Dlock.rs124 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new() method
219 pub(crate) unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new() method
Darc.rs195 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() method
505 unsafe fn new(inner: NonNull<ArcInner<T>>) -> Self { in new() method
636 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new() method
Dcondvar.rs106 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new() method
/rust/kernel/alloc/
Dlayout.rs46 pub const fn new(len: usize) -> Result<Self, LayoutError> { in new() method
Dkbox.rs248 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new() function
Dkvec.rs274 pub const fn new() -> Self { in new() function
/rust/kernel/
Dtypes.rs177 pub fn new(cleanup: impl FnOnce()) -> ScopeGuard<(), impl FnOnce(())> { in new() method
218 pub const fn new(value: T) -> Self { in new() method
Dlist.rs165 pub fn new() -> impl PinInit<Self> { in new() method
222 pub fn new() -> impl PinInit<Self> { in new() method
239 pub const fn new() -> Self { in new() method
Duaccess.rs123 pub fn new(ptr: UserPtr, length: usize) -> Self { in new() method
Drbtree.rs186 pub fn new() -> Self { in new() method
1046 pub fn new(flags: Flags) -> Result<RBTreeNodeReservation<K, V>> { in new() method
1088 pub fn new(key: K, value: V, flags: Flags) -> Result<RBTreeNode<K, V>> { in new() method
Dworkqueue.rs369 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> in new() method
Dstr.rs670 fn new() -> Self { in new() method
/rust/macros/
Dmodule.rs32 fn new(module: &'a str) -> Self { in new() method
/rust/kernel/net/phy/
Dreg.rs189 pub fn new(devad: Mmd, regnum: u16) -> Self { in new() method