From owner-freebsd-arch Mon Jun 19 11:13:13 2000 Delivered-To: freebsd-arch@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 8B94C37BD4E for ; Mon, 19 Jun 2000 11:13:10 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e5JIDAn14008 for arch@freebsd.org; Mon, 19 Jun 2000 11:13:10 -0700 (PDT) Date: Mon, 19 Jun 2000 11:13:09 -0700 From: Alfred Perlstein To: arch@freebsd.org Subject: kblob discussion. Message-ID: <20000619111309.E26801@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG oops, you can find the preliminary kblob diffs over here: http://people.freebsd.org/~alfred/kblob/kblob-final.diff It's a new syscall, less overhead than sendfile and useful for serving small chunks of data very quickly. /* * returns an fd to be used with kblobsend, preloads len of *addr into * the kernel to be sent out */ int kblob __P((int len, void *addr)); /* * see sendfile(2), but instead of the fd referencing a vnode it * references a fd returned from kblob */ int kblobsend __P((int, int, off_t, size_t, struct sf_hdtr *, off_t *, int)); questions comments flames? For the bike shed angle, I'm not particularly fond of the name 'kblob', any suggestions? -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message