archive mirror
 help / color / mirror / Atom feed
From: Samantha Miller <>
To: unlisted-recipients:; (no To-header on input)
Cc: rust-for-linux <>
Subject: Re: Exposing semaphores
Date: Mon, 26 Apr 2021 18:43:04 -0700	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

I don't think this sent last time, but sorry for the spam if it did

For my research project writing a safe Rust file system in the kernel,
I implemented RwLock as a wrapper around the kernel semaphore.
I'm not sure if it'll be exactly what you want, but feel free to use it as a
reference or more. The RwLock is here:

You can do a similar thing for a spinlock wrapper around the kernel
spinlock, I believe.

  reply	other threads:[~2021-04-27  1:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-27  0:02 Exposing semaphores Carlos
2021-04-27  0:08 ` Alex Gaynor
2021-04-27  0:12 ` Wedson Almeida Filho
2021-04-27  1:43   ` Samantha Miller [this message]
2021-04-27 11:00   ` Sven Van Asbroeck
2021-04-27 10:18 ` Sven Van Asbroeck
2021-04-27 10:58   ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).