* [patch v3] random.4: Update description about O_NONBLOCK flag
@ 2022-08-03 7:45 GUO Zihua
2022-08-05 18:36 ` Alejandro Colomar
0 siblings, 1 reply; 6+ messages in thread
From: GUO Zihua @ 2022-08-03 7:45 UTC (permalink / raw)
To: linux-man
Cc: alx.manpages, mtk.manpages, Jason, ebiggers, petr.vorel, fweimer
The O_NONBLOCK flag has been ignored since Linux 5.6 and this patch
states this change in man page.
The commit that introduce this change in the Linux kernel is
30c08efec888 ("random: make /dev/random be almost like /dev/urandom")
Signed-off-by: GUO Zihua <guozihua@huawei.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
---
v3:
-Replaced "removed" with "ignored" as suggested by Florian. Added
Reviewed-by by Petr
v2:
-Fix formating issue.
---
man4/random.4 | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/man4/random.4 b/man4/random.4
index bea860e7f0d7..3227a483d4a9 100644
--- a/man4/random.4
+++ b/man4/random.4
@@ -68,7 +68,12 @@ high quality randomness, and can afford indeterminate delays.
.PP
When the entropy pool is empty, reads from \fI/dev/random\fP will block
until additional environmental noise is gathered.
-If
+Since Linux 5.6, the
+.B O_NONBLOCK
+flag is ignored as
+.I /dev/random
+will no longer block except during early boot process.
+In eariler versions, if
.BR open (2)
is called for
.I /dev/random
--
2.36.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [patch v3] random.4: Update description about O_NONBLOCK flag
2022-08-03 7:45 [patch v3] random.4: Update description about O_NONBLOCK flag GUO Zihua
@ 2022-08-05 18:36 ` Alejandro Colomar
2022-08-05 18:45 ` Eric Biggers
0 siblings, 1 reply; 6+ messages in thread
From: Alejandro Colomar @ 2022-08-05 18:36 UTC (permalink / raw)
To: GUO Zihua; +Cc: mtk.manpages, Jason, ebiggers, petr.vorel, fweimer, linux-man
[-- Attachment #1.1: Type: text/plain, Size: 1324 bytes --]
Hi,
On 8/3/22 09:45, GUO Zihua wrote:
> The O_NONBLOCK flag has been ignored since Linux 5.6 and this patch
> states this change in man page.
>
> The commit that introduce this change in the Linux kernel is
> 30c08efec888 ("random: make /dev/random be almost like /dev/urandom")
>
> Signed-off-by: GUO Zihua <guozihua@huawei.com>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
Patch applied.
Thanks,
Alex
> ---
>
> v3:
> -Replaced "removed" with "ignored" as suggested by Florian. Added
> Reviewed-by by Petr
>
> v2:
> -Fix formating issue.
> ---
> man4/random.4 | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/man4/random.4 b/man4/random.4
> index bea860e7f0d7..3227a483d4a9 100644
> --- a/man4/random.4
> +++ b/man4/random.4
> @@ -68,7 +68,12 @@ high quality randomness, and can afford indeterminate delays.
> .PP
> When the entropy pool is empty, reads from \fI/dev/random\fP will block
> until additional environmental noise is gathered.
> -If
> +Since Linux 5.6, the
> +.B O_NONBLOCK
> +flag is ignored as
> +.I /dev/random
> +will no longer block except during early boot process.
> +In eariler versions, if
> .BR open (2)
> is called for
> .I /dev/random
--
Alejandro Colomar
<http://www.alejandro-colomar.es/>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch v3] random.4: Update description about O_NONBLOCK flag
2022-08-05 18:36 ` Alejandro Colomar
@ 2022-08-05 18:45 ` Eric Biggers
2022-08-08 1:20 ` Guozihua (Scott)
0 siblings, 1 reply; 6+ messages in thread
From: Eric Biggers @ 2022-08-05 18:45 UTC (permalink / raw)
To: Alejandro Colomar
Cc: GUO Zihua, mtk.manpages, Jason, petr.vorel, fweimer, linux-man
On Fri, Aug 05, 2022 at 08:36:02PM +0200, Alejandro Colomar wrote:
> > +In eariler versions, if
Typo: eariler => earlier
- Eric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch v3] random.4: Update description about O_NONBLOCK flag
2022-08-05 18:45 ` Eric Biggers
@ 2022-08-08 1:20 ` Guozihua (Scott)
2022-08-08 18:28 ` Alejandro Colomar
0 siblings, 1 reply; 6+ messages in thread
From: Guozihua (Scott) @ 2022-08-08 1:20 UTC (permalink / raw)
To: Eric Biggers, Alejandro Colomar
Cc: mtk.manpages, Jason, petr.vorel, fweimer, linux-man
On 2022/8/6 2:45, Eric Biggers wrote:
> On Fri, Aug 05, 2022 at 08:36:02PM +0200, Alejandro Colomar wrote:
>>> +In eariler versions, if
>
> Typo: eariler => earlier
>
> - Eric
> .
Good catch Eric!
Am I still able to fix this?
--
Best
GUO Zihua
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch v3] random.4: Update description about O_NONBLOCK flag
2022-08-08 1:20 ` Guozihua (Scott)
@ 2022-08-08 18:28 ` Alejandro Colomar
2022-08-09 1:15 ` Guozihua (Scott)
0 siblings, 1 reply; 6+ messages in thread
From: Alejandro Colomar @ 2022-08-08 18:28 UTC (permalink / raw)
To: Guozihua (Scott), Eric Biggers
Cc: mtk.manpages, Jason, petr.vorel, fweimer, linux-man
[-- Attachment #1.1: Type: text/plain, Size: 599 bytes --]
Hi.
On 8/8/22 03:20, Guozihua (Scott) wrote:
> On 2022/8/6 2:45, Eric Biggers wrote:
>> On Fri, Aug 05, 2022 at 08:36:02PM +0200, Alejandro Colomar wrote:
>>>> +In eariler versions, if
>>
>> Typo: eariler => earlier
>>
>> - Eric
>> .
>
> Good catch Eric!
>
> Am I still able to fix this?
Heh, sorry but I pushed already. I forgot to fix it, so I fixed it in a
separate commit:
<https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/?id=226cd95d78c24dee169bb96913721221fb8f656a>
Cheers,
Alex
--
Alejandro Colomar
<http://www.alejandro-colomar.es/>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [patch v3] random.4: Update description about O_NONBLOCK flag
2022-08-08 18:28 ` Alejandro Colomar
@ 2022-08-09 1:15 ` Guozihua (Scott)
0 siblings, 0 replies; 6+ messages in thread
From: Guozihua (Scott) @ 2022-08-09 1:15 UTC (permalink / raw)
To: Alejandro Colomar, Eric Biggers
Cc: mtk.manpages, Jason, petr.vorel, fweimer, linux-man
On 2022/8/9 2:28, Alejandro Colomar wrote:
> Hi.
>
> On 8/8/22 03:20, Guozihua (Scott) wrote:
>> On 2022/8/6 2:45, Eric Biggers wrote:
>>> On Fri, Aug 05, 2022 at 08:36:02PM +0200, Alejandro Colomar wrote:
>>>>> +In eariler versions, if
>>>
>>> Typo: eariler => earlier
>>>
>>> - Eric
>>> .
>>
>> Good catch Eric!
>>
>> Am I still able to fix this?
>
> Heh, sorry but I pushed already. I forgot to fix it, so I fixed it in a
> separate commit:
>
> <https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/?id=226cd95d78c24dee169bb96913721221fb8f656a>
>
>
> Cheers,
>
> Alex
>
Thanks Alex, no problem.
--
Best
GUO Zihua
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-08-09 1:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03 7:45 [patch v3] random.4: Update description about O_NONBLOCK flag GUO Zihua
2022-08-05 18:36 ` Alejandro Colomar
2022-08-05 18:45 ` Eric Biggers
2022-08-08 1:20 ` Guozihua (Scott)
2022-08-08 18:28 ` Alejandro Colomar
2022-08-09 1:15 ` Guozihua (Scott)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.