mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: linux-kernel@vger.kernel.org, linux@dominikbrodowski.net
Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>
Subject: [PATCH 0/9] random: re-group and re-document functions
Date: Fri, 11 Feb 2022 13:35:37 +0100	[thread overview]
Message-ID: <20220211123546.474952-1-Jason@zx2c4.com> (raw)

We previously had massive documentation comments and functions strewn
all about. This attempts to restore sanity by dividing the code into a
few sections:

- Initialization and readiness waiting.
- Fast key erasure RNG.
- Entropy accumulation and extraction.
- Entropy collection.
- Userspace read/write.
- Sysctl.

The result of this ordering and this grouping is only 2 forward
declarations, indicating that this is probably a sensible grouping.
Also, some documentation that was just hopelessly out of date been
removed. We'll later look into re-adding parts of this to the Linux man
pages project.

No functional changes.

Jason A. Donenfeld (9):
  random: introduce drain_entropy() helper to declutter crng_reseed()
  random: remove useless header comment
  random: rewrite header introductory comment
  random: group initialization wait functions
  random: group crng functions
  random: group entropy extraction functions
  random: group entropy collection functions
  random: group userspace read/write functions
  random: group sysctl functions

 drivers/char/random.c  | 1912 ++++++++++++++++++++--------------------
 include/linux/random.h |    6 +-
 2 files changed, 952 insertions(+), 966 deletions(-)

-- 
2.35.0


             reply	other threads:[~2022-02-11 12:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-11 12:35 Jason A. Donenfeld [this message]
2022-02-11 12:35 ` [PATCH 1/9] random: introduce drain_entropy() helper to declutter crng_reseed() Jason A. Donenfeld
2022-02-11 12:35 ` [PATCH 2/9] random: remove useless header comment Jason A. Donenfeld
2022-02-11 12:35 ` [PATCH 3/9] random: rewrite header introductory comment Jason A. Donenfeld
2022-02-11 12:35 ` [PATCH 4/9] random: group initialization wait functions Jason A. Donenfeld
2022-02-11 12:35 ` [PATCH 5/9] random: group crng functions Jason A. Donenfeld
2022-02-11 12:35 ` [PATCH 6/9] random: group entropy extraction functions Jason A. Donenfeld
2022-02-11 12:35 ` [PATCH 7/9] random: group entropy collection functions Jason A. Donenfeld
2022-02-11 12:35 ` [PATCH 8/9] random: group userspace read/write functions Jason A. Donenfeld
2022-02-11 12:35 ` [PATCH 9/9] random: group sysctl functions Jason A. Donenfeld

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20220211123546.474952-1-Jason@zx2c4.com \
    --to=jason@zx2c4.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@dominikbrodowski.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

all inboxes | Powered by JetHome®