aboutsummaryrefslogtreecommitdiffstats
path: root/rust/kernel
AgeCommit message (Expand)AuthorFilesLines
2024-04-23rust: kernel: require `Send` for `Module` implementationsWedson Almeida Filho1-1/+1
2024-04-23rust: phy: implement `Send` for `Registration`Wedson Almeida Filho1-0/+4
2024-04-04rust: init: remove impl Zeroable for InfallibleLaine Taffin Altman1-2/+9
2024-03-12Merge tag 'net-next-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-12/+12
2024-03-11Merge tag 'wq-for-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wqLinus Torvalds1-1/+5
2024-02-25rust: add `container_of!` macroWedson Almeida Filho1-0/+32
2024-02-25rust: str: implement `Display` and `Debug` for `BStr`Yutaro Ohno1-7/+178
2024-02-25rust: types: add `try_from_foreign()` methodObei Sideg1-0/+19
2024-02-18rust: kernel: stop using ptr_metadata featureAlice Ryhl2-10/+7
2024-02-18rust: kernel: add reexports for macrosAlice Ryhl6-17/+18
2024-02-18rust: locked_by: shorten doclink previewValentin Obst1-2/+5
2024-02-18rust: kernel: remove unneeded doclink targetsValentin Obst1-10/+0
2024-02-18rust: kernel: add doclinksValentin Obst3-24/+40
2024-02-18rust: kernel: add blank lines in front of code blocksValentin Obst1-0/+3
2024-02-18rust: kernel: mark code fragments in docs with backticksValentin Obst4-7/+8
2024-02-18rust: kernel: unify spelling of refcount in docsValentin Obst2-6/+6
2024-02-18rust: str: move SAFETY comment in front of unsafe blockValentin Obst1-1/+1
2024-02-18rust: str: use `NUL` instead of 0 in doc commentsValentin Obst1-2/+2
2024-02-18rust: kernel: add srctree-relative doclinksValentin Obst2-1/+3
2024-02-18rust: ioctl: end top-level module docs with full stopValentin Obst1-1/+1
2024-02-18rust: error: improve unsafe code in exampleValentin Obst1-7/+3
2024-02-18rust: kernel: fix multiple typos in documentationValentin Obst7-16/+16
2024-02-01workqueue: rust: sync with `WORK_CPU_UNBOUND` changeMiguel Ojeda1-1/+5
2024-01-28rust: sync: update integer types in CondVarAlice Ryhl2-19/+34
2024-01-28rust: sync: add `CondVar::wait_timeout`Alice Ryhl4-10/+61
2024-01-28rust: time: add msecs to jiffies conversionAlice Ryhl2-0/+21
2024-01-28rust: sync: add `CondVar::notify_sync`Alice Ryhl1-0/+10
2024-01-27rust: phy: use VTABLE_DEFAULT_ERRORFUJITA Tomonori1-8/+8
2024-01-27rust: phy: use `srctree`-relative linksFUJITA Tomonori1-4/+4
2024-01-22rust: sync: `CondVar` rename "wait_list" to "wait_queue_head"Charalampos Mitrodimas1-8/+12
2024-01-22rust: upgrade to Rust 1.75.0Miguel Ojeda1-1/+0
2024-01-11Merge tag 'rust-6.8' of https://github.com/Rust-for-Linux/linuxLinus Torvalds11-27/+37
2023-12-21rust: support `srctree`-relative linksMiguel Ojeda9-12/+12
2023-12-21rust: sync: Makes `CondVar::wait()` an uninterruptible waitBoqun Feng1-14/+14
2023-12-15rust: net::phy add module_phy_driver macroFUJITA Tomonori1-0/+146
2023-12-15rust: core abstractions for network PHY driversFUJITA Tomonori3-0/+764
2023-12-14rust: macros: improve `#[vtable]` documentationBenno Lossin1-0/+4
2023-12-14rust: bindings: rename const binding using sedGary Guo1-1/+1
2023-12-13rust: kernel: str: Implement Debug for CStringAsahi Lina1-0/+6
2023-10-30Merge tag 'wq-for-6.7-rust-bindings' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds3-2/+726
2023-10-30Merge tag 'rust-6.7' of https://github.com/Rust-for-Linux/linuxLinus Torvalds6-14/+13
2023-10-15rust: print: use explicit link in documentationMiguel Ojeda1-0/+1
2023-10-15rust: task: remove redundant explicit linkMiguel Ojeda1-1/+1
2023-10-12rust: error: Markdown style nitManmohan Shukla1-1/+1
2023-10-12rust: error: fix the description for `ECHILD`Wedson Almeida Filho1-1/+1
2023-10-05rust: kernel: remove `#[allow(clippy::new_ret_no_self)]`Gary Guo3-12/+10
2023-10-05rust: arc: add explicit `drop()` around `Box::from_raw()`Miguel Ojeda1-1/+1
2023-09-25rust: workqueue: add examplesAlice Ryhl1-0/+106
2023-09-25rust: workqueue: add `try_spawn` helper methodAlice Ryhl1-0/+43
2023-09-25rust: workqueue: implement `WorkItemPointer` for pointer typesAlice Ryhl1-1/+96
2023-09-25rust: workqueue: add helper for defining work_struct fieldsAlice Ryhl2-1/+257
2023-09-25rust: workqueue: define built-in queuesWedson Almeida Filho1-0/+71
2023-09-25rust: workqueue: add low-level workqueue bindingsAlice Ryhl2-0/+110
2023-09-25rust: sync: add `Arc::{from_raw, into_raw}`Wedson Almeida Filho2-2/+45
2023-08-29Merge tag 'rust-6.6' of https://github.com/Rust-for-Linux/linuxLinus Torvalds8-517/+803
2023-08-28Merge tag 'linux-kselftest-kunit-6.6-rc1' of git://git.kernel.org/pub/scm/lin...Linus Torvalds8-15/+197
2023-08-21rust: init: update expanded macro explanationBenno Lossin1-57/+69
2023-08-21rust: init: add `{pin_}chain` functions to `{Pin}Init<T, E>`Benno Lossin2-1/+143
2023-08-21rust: init: make `PinInit<T, E>` a supertrait of `Init<T, E>`Benno Lossin2-13/+20
2023-08-21rust: init: implement `Zeroable` for `UnsafeCell<T>` and `Opaque<T>`Benno Lossin1-1/+7
2023-08-21rust: init: add support for arbitrary paths in init macrosBenno Lossin1-19/+35
2023-08-21rust: init: add functions to create array initializersBenno Lossin1-0/+88
2023-08-21rust: init: add `..Zeroable::zeroed()` syntax for zeroing all missing fieldsBenno Lossin2-2/+129
2023-08-21rust: init: make initializer values inaccessible after initializingBenno Lossin1-9/+11
2023-08-21rust: init: wrap type checking struct initializers in a closureBenno Lossin1-4/+4
2023-08-21rust: init: make guards in the init macros hygienicBenno Lossin3-86/+56
2023-08-21rust: add derive macro for `Zeroable`Benno Lossin2-1/+36
2023-08-21rust: init: make `#[pin_data]` compatible with conditional compilation of fieldsBenno Lossin1-0/+2
2023-08-21rust: init: consolidate init macrosBenno Lossin2-366/+259
2023-08-15rust: bindgen: upgrade to 0.65.1Aakash Sen Sharma1-3/+0
2023-08-14rust: upgrade to Rust 1.71.1Miguel Ojeda1-49/+2
2023-08-10rust: types: make `Opaque` be `!Unpin`Benno Lossin1-5/+14
2023-08-10rust: make `UnsafeCell` the outer type in `Opaque`Alice Ryhl1-5/+5
2023-08-07rust: alloc: Add realloc and alloc_zeroed to the GlobalAlloc implBjörn Roy Baron1-0/+27
2023-08-07rust: allocator: Use krealloc_aligned() in KernelAllocator::allocBoqun Feng1-3/+3
2023-08-07rust: lock: Add intra-doc links to the Backend traitBen Gooding1-3/+3
2023-08-04rust: delete `ForeignOwnable::borrow_mut`Alice Ryhl2-22/+3
2023-08-04rust: allocator: Prevent mis-aligned allocationBoqun Feng1-15/+59
2023-07-19rust: support running Rust documentation tests as KUnit onesMiguel Ojeda2-0/+165
2023-07-19rust: types: make doctests compilable/testableMiguel Ojeda1-3/+3
2023-07-19rust: sync: make doctests compilable/testableMiguel Ojeda3-2/+9
2023-07-19rust: str: make doctests compilable/testableMiguel Ojeda1-1/+3
2023-07-18rust: init: make doctests compilable/testableMiguel Ojeda1-9/+17
2023-06-13rust: error: `impl Debug` for `Error` with `errname()` integrationGary Guo1-0/+39
2023-05-31rust: task: add `Send` marker to `Task`Alice Ryhl1-2/+8
2023-05-31rust: specify when `ARef` is thread safeAlice Ryhl1-0/+13
2023-05-31rust: sync: reword the `Arc` safety comment for `Sync`Alice Ryhl1-3/+5
2023-05-31rust: sync: reword the `Arc` safety comment for `Send`Alice Ryhl1-2/+2
2023-05-31rust: sync: implement `AsRef<T>` for `Arc<T>`Alice Ryhl1-0/+6
2023-05-31rust: sync: add `Arc::ptr_eq`Alice Ryhl1-0/+5
2023-05-31rust: error: add missing error codesAlice Ryhl1-0/+20
2023-05-31rust: str: add conversion from `CStr` to `CString`Alice Ryhl1-0/+22
2023-05-31rust: error: allow specifying error type on `Result`Alice Ryhl1-1/+1
2023-05-31rust: init: update macro expansion example in docsBenno Lossin1-37/+48
2023-05-31rust: upgrade to Rust 1.68.2Miguel Ojeda4-4/+9
2023-05-31rust: arc: fix intra-doc link in `Arc<T>::init`Miguel Ojeda1-1/+1
2023-04-30Merge tag 'rust-6.4' of https://github.com/Rust-for-Linux/linuxLinus Torvalds17-8/+4084
2023-04-22rust: ioctl: Add ioctl number manipulation functionsAsahi Lina2-0/+73
2023-04-22rust: uapi: Add UAPI crateAsahi Lina1-0/+1
2023-04-22rust: sync: introduce `CondVar`Wedson Almeida Filho3-1/+176
2023-04-22rust: lock: add `Guard::do_unlocked`Wedson Almeida Filho2-2/+30
2023-04-22rust: sync: introduce `LockedBy`Wedson Almeida Filho3-1/+159
2023-04-22rust: introduce `current`Wedson Almeida Filho2-1/+83
2023-04-22rust: add basic `Task`Wedson Almeida Filho2-0/+76
2023-04-22rust: introduce `ARef`Wedson Almeida Filho1-0/+107
2023-04-22rust: lock: introduce `SpinLock`Wedson Almeida Filho3-1/+118
2023-04-22rust: lock: introduce `Mutex`Wedson Almeida Filho3-0/+121
2023-04-22rust: sync: introduce `Lock` and `Guard`Wedson Almeida Filho2-1/+163
2023-04-21rust: sync: introduce `LockClassKey`Wedson Almeida Filho1-0/+45
2023-04-21rust: init: broaden the blanket impl of `Init`Benno Lossin1-2/+2
2023-04-12rust: sync: add functions for initializing `UniqueArc<MaybeUninit<T>>`Benno Lossin1-0/+24
2023-04-12rust: sync: reduce stack usage of `UniqueArc::try_new_uninit`Benno Lossin2-4/+13
2023-04-12rust: types: add `Opaque::ffi_init`Benno Lossin2-0/+29
2023-04-12rust: prelude: add `pin-init` API items to preludeBenno Lossin1-1/+5
2023-04-12rust: init: add `Zeroable` trait and `init::zeroed` functionBenno Lossin1-2/+95
2023-04-12rust: init: add `stack_pin_init!` macroBenno Lossin2-6/+191
2023-04-12rust: init: add `PinnedDrop` trait and macrosBenno Lossin3-0/+390
2023-04-12rust: init/sync: add `InPlaceInit` trait to pin-initialize smart pointersBenno Lossin2-13/+139
2023-04-12rust: init: add initialization macrosBenno Lossin3-5/+1639
2023-04-12rust: add pin-init API coreBenno Lossin3-0/+226
2023-04-12rust: types: add `Opaque::raw_get`Benno Lossin1-0/+8
2023-04-12rust: sync: change error type of constructor functionsBenno Lossin1-4/+4
2023-04-12rust: enable the `pin_macro` featureBenno Lossin1-0/+1
2023-04-12rust: error: Add from_result() helperWedson Almeida Filho1-0/+39
2023-04-12rust: error: Add a helper to convert a C ERR_PTR to a `Result`Sven Van Asbroeck1-1/+49
2023-04-12rust: error: Add to_result() helperWedson Almeida Filho1-1/+10
2023-04-12rust: error: Add Error::from_errno{_unchecked}()Miguel Ojeda1-0/+32
2023-04-12rust: error: Add Error::to_ptr()Asahi Lina1-0/+7
2023-04-12rust: error: Rename to_kernel_errno() -> to_errno()Asahi Lina1-1/+1
2023-04-12rust: sync: arc: Add UniqueArc<MaybeUninit<T>::assume_init()Asahi Lina1-0/+11
2023-04-10rust: sync: arc: Implement Arc<dyn Any + Send + Sync>::downcast()Asahi Lina2-0/+30
2023-04-10rust: Enable the new_uninit feature for kernel and driver cratesAsahi Lina1-0/+1
2023-04-10rust: sync: impl {Debug,Display} for {Unique,}ArcBoqun Feng1-0/+25
2023-04-06rust: kernel: Mark rust_fmt_argument as extern "C"David Gow1-1/+5
2023-04-06rust: str: fix requierments->requirements typoPatrick Blass1-1/+1
2023-02-20Merge tag 'rust-6.3' of https://github.com/Rust-for-Linux/linuxLinus Torvalds5-2/+761
2023-02-07rust: types: implement `ForeignOwnable` for `Arc<T>`Wedson Almeida Filho1-1/+31
2023-02-01rust: types: implement `ForeignOwnable` for the unit typeWedson Almeida Filho1-0/+12
2023-02-01rust: types: implement `ForeignOwnable` for `Box<T>`Wedson Almeida Filho1-0/+23
2023-02-01rust: types: introduce `ForeignOwnable`Wedson Almeida Filho2-0/+55
2023-02-01rust: types: introduce `ScopeGuard`Wedson Almeida Filho1-1/+125
2023-01-16rust: prelude: prevent doc inline of external importsFinn Behrens1-1/+7
2023-01-16rust: sync: add support for dispatching on Arc and ArcBorrow.Wedson Almeida Filho2-2/+19
2023-01-16rust: sync: introduce `UniqueArc`Wedson Almeida Filho2-3/+151
2023-01-16rust: sync: allow type of `self` to be `ArcBorrow<T>`Wedson Almeida Filho1-0/+23
2023-01-16rust: sync: introduce `ArcBorrow`Wedson Almeida Filho2-1/+98
2023-01-16rust: sync: allow coercion from `Arc<T>` to `Arc<U>`Wedson Almeida Filho2-1/+28
2023-01-16rust: sync: allow type of `self` to be `Arc<T>` or variantsWedson Almeida Filho2-0/+29
2023-01-16rust: sync: add `Arc` for ref-counted allocationsWedson Almeida Filho3-0/+168
2023-01-16rust: print: avoid evaluating arguments in `pr_*` macros in `unsafe` blocksMiguel Ojeda1-11/+18
2022-12-04rust: types: add `Opaque` typeWedson Almeida Filho1-0/+25
2022-12-04rust: types: add `Either` typeWedson Almeida Filho2-0/+13
2022-12-04rust: build_assert: add `build_{error,assert}!` macrosGary Guo3-0/+88
2022-12-04rust: static_assert: add `static_assert!` macroMiguel Ojeda3-0/+37
2022-12-04rust: std_vendor: add `dbg!` macro based on `std`'s oneNiklas Mohrin3-1/+166
2022-12-04rust: str: add `fmt!` macroWedson Almeida Filho1-0/+6
2022-12-04rust: str: add `CString` typeWedson Almeida Filho1-2/+89
2022-12-04rust: str: add `Formatter` typeWedson Almeida Filho1-0/+57
2022-12-04rust: str: add `c_str!` macroGary Guo1-0/+23
2022-12-04rust: str: add `CStr` unit testsMilan Landaverde1-0/+29
2022-12-04rust: str: implement several traits for `CStr`Gary Guo1-1/+123
2022-12-04rust: str: add `CStr` typeGary Guo2-1/+170
2022-12-04rust: str: add `b_str!` macroGary Guo1-0/+21
2022-12-04rust: str: add `BStr` typeGary Guo1-0/+5
2022-12-04rust: prelude: add `error::code::*` constant itemsWedson Almeida Filho1-1/+1
2022-12-04rust: error: add `From` implementations for `Error`Wedson Almeida Filho2-1/+45
2022-12-04rust: error: add codes from `errno-base.h`Viktor Garske1-0/+33
2022-12-04rust: error: declare errors using macroFinn Behrens1-2/+10
2022-12-04rust: macros: add `#[vtable]` proc macroGary Guo1-1/+1
2022-12-01rust: print: add `pr_cont!` macroMiguel Ojeda1-9/+63
2022-12-01rust: print: add more `pr_*!` levelsMiguel Ojeda2-1/+155
2022-12-01rust: prelude: split re-exports into groupsMiguel Ojeda1-5/+9
2022-09-28rust: add `kernel` crateWedson Almeida Filho6-0/+491