Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3727567ybt; Tue, 23 Jun 2020 09:16:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWCi1ta+bylY6sNc1driv7qek+Jk+miMS5Q0PaQ25mBwxYPro114sCohBGx5R/60eInZab X-Received: by 2002:a17:906:4c41:: with SMTP id d1mr9417769ejw.497.1592928966805; Tue, 23 Jun 2020 09:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592928966; cv=none; d=google.com; s=arc-20160816; b=pCrVRA9plwulLC6HqKNGKHcGErcqx4iGPc/g+IaWMALPW1PWSDA9AIKFiU0AJlFS4U e6fimPVIphS8NkwNQLcxYWQ5p6syw0t+jyUGCro1GL2GfOfXtZT8Bk8uxwzW+P5V3Lpv dl3MPwBP/oNdmagyWXEjBJdHvK9BKSB49UycrXp3B7kvswDk+kLfpzF3YF/PBavhZBAk /PfgYCqCKFNUQoZSNoedw1jy1Z1B2od9ZkcaGFMUAPynVsdfXMdISGTEZBdtR5FBGbNF FwbY8HpLfDxwhKLAu/saTf5eKA7KEEt6wCJfMlScymkMX/f4Ah8imB/Vwr2ucJOgwadR Grbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=JjqIMbhLxOCozOZyX21SIEuWyvRzo6ZrU1dJjU5zVNI=; b=rZaQvY+TRo4UsEK0CTvj1yX7e3couzYOt2kmZuwnYQRLOiw3pvtCt5BJ+LV7z4b6LR UEdl73yPa8c6IJKxvw4QdFaH1B94WqIY2LQq1sp8QMVmiSLZtyXM4HvrnRidhNz+2oxH lY4uWGpYX/h0bOFBuqHUo7lKmZ3W7JknF8KkdMeBgpdqowEg7fUMHOCEFr596TqMjO2s 803axnljv86y5J7FHTybuRVU7tKhSNWOvffVypkDLT3h5+tGkGbwpWQLGHbmjNvALFrt DxnKr2a2/coyQgCW0p86Lp0oOi6yYI0K1thVvVYZmSPxO848bQsyORXUVibybzW04UVa i6Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si11736993ejr.522.2020.06.23.09.15.43; Tue, 23 Jun 2020 09:16:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732266AbgFWQLr (ORCPT + 99 others); Tue, 23 Jun 2020 12:11:47 -0400 Received: from 7.mo7.mail-out.ovh.net ([46.105.43.131]:57267 "EHLO 7.mo7.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728472AbgFWQLq (ORCPT ); Tue, 23 Jun 2020 12:11:46 -0400 X-Greylist: delayed 16198 seconds by postgrey-1.27 at vger.kernel.org; Tue, 23 Jun 2020 12:11:45 EDT Received: from player729.ha.ovh.net (unknown [10.108.54.9]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id A8FAC16E57F for ; Tue, 23 Jun 2020 13:25:29 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player729.ha.ovh.net (Postfix) with ESMTPSA id F331413CA8325; Tue, 23 Jun 2020 11:25:24 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006ec57e60d-c50f-47ce-902b-8d6c55eb38f1,D7C09D202404919884AD844CAC4983D4C4BCB1F3) smtp.auth=steve@sk2.org From: Stephen Kitt To: Jonathan Corbet , linux-doc@vger.kernel.org Cc: Theodore Ts'o , linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] docs: sysctl/kernel: document random Date: Tue, 23 Jun 2020 13:25:14 +0200 Message-Id: <20200623112514.10650-1-steve@sk2.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 16620815902375103877 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrudekhedguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeetgedugfelkeeikeetgeegteevfeeufeetuefgudeiiedthfehtdeffeekvdeffeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhlrgihvghrjedvledrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This documents the random directory, based on the behaviour seen in drivers/char/random.c. Signed-off-by: Stephen Kitt --- Documentation/admin-guide/sysctl/kernel.rst | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index 6d96f17b74a4..5f432f51f23e 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -996,6 +996,38 @@ pty See Documentation/filesystems/devpts.rst. +random +====== + +This is a directory, with the following entries: + +* ``boot_id``: a UUID generated the first time this is retrieved, and + unvarying after that; + +* ``entropy_avail``: the pool's entropy count, in bits; + +* ``poolsize``: the entropy pool size, in bits; + +* ``urandom_min_reseed_secs``: obsolete (used to determine the minimum + number of seconds between urandom pool reseeding). + +* ``uuid``: a UUID generated every time this is retrieved (this can + thus be used to generate UUIDs at will); + +* ``write_wakeup_threshold``: when the entropy count drops below this + (as a number of bits), processes waiting to write to ``/dev/random`` + are woken up. + +If ``drivers/char/random.c`` is built with ``ADD_INTERRUPT_BENCH`` +defined, these additional entries are present: + +* ``add_interrupt_avg_cycles``: the average number of cycles between + interrupts used to feed the pool; + +* ``add_interrupt_avg_deviation``: the standard deviation seen on the + number of cycles between interrupts used to feed the pool. + + randomize_va_space ================== base-commit: 46e906144c3f4b0a7b6dcc7713fafad65b1859e0 -- 2.20.1