Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 2 Dec 2000 15:58:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 2 Dec 2000 15:58:34 -0500 Received: from mail-out.chello.nl ([213.46.240.7]:19009 "EHLO amsmta03-svc.chello.nl") by vger.kernel.org with ESMTP id ; Sat, 2 Dec 2000 15:58:28 -0500 Date: Sat, 2 Dec 2000 22:35:34 +0100 (CET) From: Igmar Palsenberg To: Jeff Garzik cc: Matthew Kirkwood , folkert@vanheusden.com, "Theodore Y Ts'o" , Kernel devel list , vpnd@sunsite.auc.dk Subject: Re: /dev/random probs in 2.4test(12-pre3) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > "totally block"? > > For a blocking fd, read(2) has always blocked until some data is > available. There has never been a guarantee, for any driver, that > a read(2) will return the full amount of bytes requested. Hmm.. Some came to mind : Making /dev/random block if the amount requirements aren't met makes sense to me. If I request x bytes of random stuff, and get less, I probably reread /dev/random. If it's entropy pool is exhausted it makes sense to be to block. Just some mind spin. > There is no need to document this... man read(2) ;-) > > Jeff Igmar - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/