mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/9] random: re-group and re-document functions
@ 2022-02-11 12:35 Jason A. Donenfeld
  2022-02-11 12:35 ` [PATCH 1/9] random: introduce drain_entropy() helper to declutter crng_reseed() Jason A. Donenfeld
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jason A. Donenfeld @ 2022-02-11 12:35 UTC (permalink / raw)
  To: linux-kernel, linux; +Cc: Jason A. Donenfeld

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-02-11 12:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-11 12:35 [PATCH 0/9] random: re-group and re-document functions Jason A. Donenfeld
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

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®