<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/source/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in pthread_mutex.rs</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>09808839c7aa6695ceff5cd822c18b0d9550184d - rust: pin-init: replace `addr_of_mut!` with `&amp;raw mut`</title>
        <link>http://kernelsources.org:8080/source/history/linux/rust/pin-init/examples/pthread_mutex.rs#09808839c7aa6695ceff5cd822c18b0d9550184d</link>
        <description>rust: pin-init: replace `addr_of_mut!` with `&amp;raw mut``feature(raw_ref_op)` became stable in Rust 1.82.0 which is the currentMSRV of pin-init with no default features. Earlier Rust versions willnow need to enable `raw_ref_op` to continue to work with pin-init.This reduces visual complexity and improves consistency with existingreference syntax.Suggested-by: Benno Lossin &lt;lossin@kernel.org&gt;Link: https://github.com/Rust-for-Linux/linux/issues/1148Closes: https://github.com/Rust-for-Linux/pin-init/issues/99Signed-off-by: Antonio Hickey &lt;contact@antoniohickey.com&gt;Link: https://github.com/Rust-for-Linux/pin-init/commit/e27763004e2f6616b089437fbe9b3719cd72bd5c[ Reworded commit message. - Benno ]Reviewed-by: Gary Guo &lt;gary@garyguo.net&gt;Link: https://patch.msgid.link/20260319093542.3756606-6-lossin@kernel.orgSigned-off-by: Benno Lossin &lt;lossin@kernel.org&gt;

            List of files:
            /linux/rust/pin-init/examples/pthread_mutex.rs</description>
        <pubDate>Thu, 19 Mar 2026 10:35:28 +0100</pubDate>
        <dc:creator>Antonio Hickey &lt;contact@antoniohickey.com&gt;</dc:creator>
    </item>
<item>
        <title>002a121b16c3a20c6e0ff24fc8dad6dab59730f9 - rust: pin-init: build: simplify use of nightly features</title>
        <link>http://kernelsources.org:8080/source/history/linux/rust/pin-init/examples/pthread_mutex.rs#002a121b16c3a20c6e0ff24fc8dad6dab59730f9</link>
        <description>rust: pin-init: build: simplify use of nightly featuresWe use some features that are already stable in later versions of Rust,but only available as unstable features in older Rust versions that thekernel needs to support.Instead of checking if a feature is already stable, simply enable themand allow the warning if the feature is already stable. This avoids theneed of hardcoding whether a feature has been stabilized at a givenversion.`#[feature(...)]` is used when cfg `USE_RUSTC_FEATURES` is enabled. Thebuild script automatically does this when a nightly compiler is detectedor `RUSTC_BOOTSTRAP` is set.Signed-off-by: Gary Guo &lt;gary@garyguo.net&gt;Link: https://github.com/Rust-for-Linux/pin-init/commit/885c5d83d7eb778a796d4a17380a0898b0d0a571[ Added kernel build system changes to always enable USE_RUSTC_FEATURES.  Moved this commit earlier (swapped with the next one) to avoid a build  error. - Benno ]Link: https://patch.msgid.link/20260319093542.3756606-2-lossin@kernel.orgSigned-off-by: Benno Lossin &lt;lossin@kernel.org&gt;

            List of files:
            /linux/rust/pin-init/examples/pthread_mutex.rs</description>
        <pubDate>Thu, 19 Mar 2026 10:35:24 +0100</pubDate>
        <dc:creator>Gary Guo &lt;gary@garyguo.net&gt;</dc:creator>
    </item>
<item>
        <title>61d62ab08f0e62f89929f3920c0b6521d849fd57 - rust: pin-init: remove `try_` versions of the initializer macros</title>
        <link>http://kernelsources.org:8080/source/history/linux/rust/pin-init/examples/pthread_mutex.rs#61d62ab08f0e62f89929f3920c0b6521d849fd57</link>
        <description>rust: pin-init: remove `try_` versions of the initializer macrosThe `try_[pin_]init!` versions of the initializer macros aresuperfluous. Instead of forcing the user to always write an error in`try_[pin_]init!` and not allowing one in `[pin_]init!`, combine theminto `[pin_]init!` that defaults the error to`core::convert::Infallible`, but also allows to specify a custom one.Projects using pin-init still can provide their own defaultinginitializers using the `try_` prefix by using the `#[default_error]`attribute added in a future patch.[ Adjust the definition of the kernel&apos;s version of the `try_`  initializer macros - Benno]Reviewed-by: Gary Guo &lt;gary@garyguo.net&gt;Tested-by: Andreas Hindborg &lt;a.hindborg@kernel.org&gt;Signed-off-by: Benno Lossin &lt;lossin@kernel.org&gt;

            List of files:
            /linux/rust/pin-init/examples/pthread_mutex.rs</description>
        <pubDate>Fri, 16 Jan 2026 11:54:16 +0100</pubDate>
        <dc:creator>Benno Lossin &lt;lossin@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>fc3870dc5cadb701b4122e4a8daa85f9fa2f57b9 - rust: pin-init: examples, tests: use `ignore` instead of conditionally compiling tests</title>
        <link>http://kernelsources.org:8080/source/history/linux/rust/pin-init/examples/pthread_mutex.rs#fc3870dc5cadb701b4122e4a8daa85f9fa2f57b9</link>
        <description>rust: pin-init: examples, tests: use `ignore` instead of conditionally compiling testsChange `#[cfg(cond)]` to `#[cfg_attr(not(cond), ignore)]` on tests.Ignoring tests instead of disabling them still makes them appear in thetest list, but with `ignored`. It also still compiles the code in thosecases.Some tests still need to be ignore, because they use types that are notpresent when the condition is false. For example the condition is`feature = std` and then it uses `std::thread::Thread`.Suggested-by: Alice Ryhl &lt;aliceryhl@google.com&gt;Link: https://lore.kernel.org/all/aDC9y829vZZBzZ2p@google.comLink: https://github.com/Rust-for-Linux/pin-init/pull/58/commits/b004dd8e64d4cbe219a4eff0d25f0a5f5bc750caReviewed-by: Christian Schrefl &lt;chrisi.schrefl@gmail.com&gt;Link: https://lore.kernel.org/all/20250605155258.573391-1-lossin@kernel.orgSigned-off-by: Benno Lossin &lt;lossin@kernel.org&gt;

            List of files:
            /linux/rust/pin-init/examples/pthread_mutex.rs</description>
        <pubDate>Thu, 05 Jun 2025 17:52:54 +0200</pubDate>
        <dc:creator>Benno Lossin &lt;lossin@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>2408678d700c4db6c54749a272d42a964f5f3418 - rust: pin-init: examples: pthread_mutex: disable the main test for miri</title>
        <link>http://kernelsources.org:8080/source/history/linux/rust/pin-init/examples/pthread_mutex.rs#2408678d700c4db6c54749a272d42a964f5f3418</link>
        <description>rust: pin-init: examples: pthread_mutex: disable the main test for miri`miri` takes a long time to execute the test, so disable it.Link: https://github.com/Rust-for-Linux/pin-init/pull/50/commits/e717a9eec85024c11e79e8bd9dcb664ad0de8f94Link: https://lore.kernel.org/all/20250523125424.192843-3-lossin@kernel.orgSigned-off-by: Benno Lossin &lt;lossin@kernel.org&gt;

            List of files:
            /linux/rust/pin-init/examples/pthread_mutex.rs</description>
        <pubDate>Fri, 23 May 2025 14:54:12 +0200</pubDate>
        <dc:creator>Benno Lossin &lt;benno.lossin@proton.me&gt;</dc:creator>
    </item>
<item>
        <title>58cebd68882edd407c7f65ebb4a42034bc1ffc6d - rust: pin-init: examples, tests: add conditional compilation in order to compile under any feature combination</title>
        <link>http://kernelsources.org:8080/source/history/linux/rust/pin-init/examples/pthread_mutex.rs#58cebd68882edd407c7f65ebb4a42034bc1ffc6d</link>
        <description>rust: pin-init: examples, tests: add conditional compilation in order to compile under any feature combinationIn the CI, all examples &amp; tests should be run under all featurecombinations. Currently several examples &amp; tests use `std` withoutconditionally enabling it. Thus make them all compile under any featurecombination by conditionally disabling the code that uses e.g. `std`.Link: https://github.com/Rust-for-Linux/pin-init/pull/50/commits/fdfb70efddbc711b4543c850ee38a2f5a8d17cb6Link: https://lore.kernel.org/all/20250523125424.192843-2-lossin@kernel.orgSigned-off-by: Benno Lossin &lt;lossin@kernel.org&gt;

            List of files:
            /linux/rust/pin-init/examples/pthread_mutex.rs</description>
        <pubDate>Fri, 23 May 2025 14:54:11 +0200</pubDate>
        <dc:creator>Benno Lossin &lt;benno.lossin@proton.me&gt;</dc:creator>
    </item>
<item>
        <title>39051adb070432b283e6c11b2b24937281b9f97f - rust: pin-init: examples: use `allow` instead of `expect`</title>
        <link>http://kernelsources.org:8080/source/history/linux/rust/pin-init/examples/pthread_mutex.rs#39051adb070432b283e6c11b2b24937281b9f97f</link>
        <description>rust: pin-init: examples: use `allow` instead of `expect`Rust 1.78 doesn&apos;t emit a `dead_code` error on the annotated element,resulting in the `unfulfilled_lint_expectations` error. Rust 1.85 doesemit the `dead_code` error, so we still need an `allow`.Link: https://github.com/Rust-for-Linux/pin-init/pull/33/commits/0e28cbb895bd29f896a59b40e8ed506ea7bef13cLink: https://lore.kernel.org/all/20250414195928.129040-4-benno.lossin@proton.meSigned-off-by: Benno Lossin &lt;benno.lossin@proton.me&gt;

            List of files:
            /linux/rust/pin-init/examples/pthread_mutex.rs</description>
        <pubDate>Mon, 14 Apr 2025 22:00:31 +0200</pubDate>
        <dc:creator>Benno Lossin &lt;benno.lossin@proton.me&gt;</dc:creator>
    </item>
<item>
        <title>5c4167b4056c9db951788541e23585dd4a1fa426 - rust: pin-init: examples: conditionally enable `feature(lint_reasons)`</title>
        <link>http://kernelsources.org:8080/source/history/linux/rust/pin-init/examples/pthread_mutex.rs#5c4167b4056c9db951788541e23585dd4a1fa426</link>
        <description>rust: pin-init: examples: conditionally enable `feature(lint_reasons)``lint_reasons` is unstable in Rust 1.80 and earlier, enable itconditionally in the examples to allow compiling them with oldercompilers.Link: https://github.com/Rust-for-Linux/pin-init/pull/33/commits/ec494fe686b0a97d5b59b5be5a42d3858038ea6aLink: https://lore.kernel.org/all/20250414195928.129040-3-benno.lossin@proton.meSigned-off-by: Benno Lossin &lt;benno.lossin@proton.me&gt;

            List of files:
            /linux/rust/pin-init/examples/pthread_mutex.rs</description>
        <pubDate>Mon, 14 Apr 2025 22:00:20 +0200</pubDate>
        <dc:creator>Benno Lossin &lt;benno.lossin@proton.me&gt;</dc:creator>
    </item>
<item>
        <title>193b5a75744af2669ad7c5f7aa4f9219dc73ca69 - rust: pin-init: use Markdown autolinks in Rust comments</title>
        <link>http://kernelsources.org:8080/source/history/linux/rust/pin-init/examples/pthread_mutex.rs#193b5a75744af2669ad7c5f7aa4f9219dc73ca69</link>
        <description>rust: pin-init: use Markdown autolinks in Rust comments&quot;Normal&quot; comments in Rust (`//`) are also formatted in Markdown, likethe documentation (`///` and `//!`), seeDocumentation/rust/coding-guidelines.rstThus use Markdown autolinks for a couple links that were missing it.It also helps to get proper linking in some software like kitty [1].Suggested-by: Benno Lossin &lt;benno.lossin@proton.me&gt;Link: https://github.com/Rust-for-Linux/pin-init/pull/32#discussion_r2023103712 [1]Signed-off-by: Miguel Ojeda &lt;ojeda@kernel.org&gt;Link: https://github.com/Rust-for-Linux/pin-init/pull/32/commits/dd230d61bf0538281072fbff4bb71efc58f3420cFixes: 84837cf6fa54 (&quot;rust: pin-init: change examples to the user-space version&quot;)Cc: stable@vger.kernel.org[ Change case in title. Reworded commit message. - Benno ]Signed-off-by: Benno Lossin &lt;benno.lossin@proton.me&gt;Link: https://lore.kernel.org/r/20250407201755.649153-3-benno.lossin@proton.meSigned-off-by: Miguel Ojeda &lt;ojeda@kernel.org&gt;

            List of files:
            /linux/rust/pin-init/examples/pthread_mutex.rs</description>
        <pubDate>Mon, 07 Apr 2025 22:18:29 +0200</pubDate>
        <dc:creator>Miguel Ojeda &lt;ojeda@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>84837cf6fa541150a3012ea233225a7ecfa8771a - rust: pin-init: change examples to the user-space version</title>
        <link>http://kernelsources.org:8080/source/history/linux/rust/pin-init/examples/pthread_mutex.rs#84837cf6fa541150a3012ea233225a7ecfa8771a</link>
        <description>rust: pin-init: change examples to the user-space versionReplace the examples in the documentation by the ones from theuser-space version and introduce the standalone examples from theuser-space version such as the `CMutex&lt;T&gt;` type.The `CMutex&lt;T&gt;` example from the pinned-init repository [1] is used inseveral documentation examples in the user-space version instead of thekernel `Mutex&lt;T&gt;` type (as it&apos;s not available). In order to split offthe pin-init crate, all examples need to be free of kernel-specifictypes.Link: https://github.com/rust-for-Linux/pinned-init [1]Signed-off-by: Benno Lossin &lt;benno.lossin@proton.me&gt;Reviewed-by: Fiona Behrens &lt;me@kloenk.dev&gt;Tested-by: Andreas Hindborg &lt;a.hindborg@kernel.org&gt;Link: https://lore.kernel.org/r/20250308110339.2997091-6-benno.lossin@proton.meSigned-off-by: Miguel Ojeda &lt;ojeda@kernel.org&gt;

            List of files:
            /linux/rust/pin-init/examples/pthread_mutex.rs</description>
        <pubDate>Sat, 08 Mar 2025 12:04:18 +0100</pubDate>
        <dc:creator>Benno Lossin &lt;benno.lossin@proton.me&gt;</dc:creator>
    </item>
</channel>
</rss>
