4646//! }
4747//!
4848//! let foo = pin_init!(Foo {
49- //! a <- new_mutex! (42, "Foo::a"),
49+ //! a <- Mutex::new_named (42, "Foo::a"),
5050//! b: 24,
5151//! });
5252//! ```
6565//! # b: u32,
6666//! # }
6767//! # let foo = pin_init!(Foo {
68- //! # a <- new_mutex! (42, "Foo::a"),
68+ //! # a <- Mutex::new_named (42, "Foo::a"),
6969//! # b: 24,
7070//! # });
7171//! let foo: Result<Pin<KBox<Foo>>> = KBox::pin_init(foo, GFP_KERNEL);
9898//! impl DriverData {
9999//! fn new() -> impl PinInit<Self, Error> {
100100//! try_pin_init!(Self {
101- //! status <- new_mutex! (0, "DriverData::status"),
101+ //! status <- Mutex::new_named (0, "DriverData::status"),
102102//! buffer: KBox::init(kernel::init::zeroed(), GFP_KERNEL)?,
103103//! })
104104//! }
@@ -253,7 +253,7 @@ pub mod macros;
253253/// }
254254///
255255/// stack_pin_init!(let foo = pin_init!(Foo {
256- /// a <- new_mutex! (42),
256+ /// a <- Mutex::new (42),
257257/// b: Bar {
258258/// x: 64,
259259/// },
@@ -305,7 +305,7 @@ macro_rules! stack_pin_init {
305305/// }
306306///
307307/// stack_try_pin_init!(let foo: Result<Pin<&mut Foo>, AllocError> = pin_init!(Foo {
308- /// a <- new_mutex! (42),
308+ /// a <- Mutex::new (42),
309309/// b: KBox::new(Bar {
310310/// x: 64,
311311/// }, GFP_KERNEL)?,
@@ -331,7 +331,7 @@ macro_rules! stack_pin_init {
331331/// }
332332///
333333/// stack_try_pin_init!(let foo: Pin<&mut Foo> =? pin_init!(Foo {
334- /// a <- new_mutex! (42),
334+ /// a <- Mutex::new (42),
335335/// b: KBox::new(Bar {
336336/// x: 64,
337337/// }, GFP_KERNEL)?,
0 commit comments