Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2000 11:13:09 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        arch@freebsd.org
Subject:   kblob discussion.
Message-ID:  <20000619111309.E26801@fw.wintelcom.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000619111309.E26801>