From owner-freebsd-hackers Mon Jan 29 11:16:35 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 54F3837B404 for ; Mon, 29 Jan 2001 11:16:16 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f0TJGEG34400; Mon, 29 Jan 2001 11:16:14 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200101291916.f0TJGEG34400@iguana.aciri.org> Subject: Re: [kernel patch] fcntl(...) to close many descriptors In-Reply-To: <200101291906.OAA36539@khavrinen.lcs.mit.edu> from Garrett Wollman at "Jan 29, 2001 2: 6:18 pm" To: wollman@khavrinen.lcs.mit.edu (Garrett Wollman) Date: Mon, 29 Jan 2001 11:16:04 -0800 (PST) Cc: rizzo@aciri.org, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > < said: > > > And, this mechanism would be explicitly used for "non portable" or > > experimental functions (such as the closeall() which started the > > thread, or next time someone comes up with a start_http_server_thread()) > > and avoiding overloading an existing syscall or having to modify > > libc > > This assumes that experimental functionality is always going to > implemented as a system call. that was the context of the thread as it evolved -- finding non-intrusive ways to add new or experimental syscalls without having to change kernel, libc or the like. As a matter of fact, you could easily provide (in the libc stub) hooks to add/remove names (and corresponding userland functions) that are tried by this new call either before or after passing control to the kernel version. The generic method would basically have the same interface as ioctl() or fcntl(), with the fd replaced by a pointer to the function name. cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message