Commit Graph

15 Commits

Author SHA1 Message Date
mrg bc7506b1cc avoid some uninitialised variable warnings. 2011-07-08 09:32:45 +00:00
jakllsch 4abad0c82d Third argument of MODULE() is typically a string literal.
Moreover it (at least sometimes) didn't build otherwise.
2011-02-07 03:14:28 +00:00
haad 3bb48ba615 Add support for building pud as module. Do it in a same way how putter is
done.
2011-01-28 23:54:28 +00:00
pooka 789329033b Handle DIOCGPART in-kernel because a userspace server doesn't have
a chance in phobos of handling it.  This makes it possible to do a
kernel mount of most file systems with the block device backed by
a pud userspace server.

-  i'm too young to compile
-  hey, no tty rough
-  hurd me plenty
=> abstraction-violence
-  nightmare!
2009-12-22 17:32:03 +00:00
pooka 6c9d0b51cb fix pasto 2009-12-22 14:12:40 +00:00
cegger df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
drochner d767912be3 Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
2009-01-20 18:20:47 +00:00
pooka bce4ea0296 one more lock to destroy 2007-11-28 17:01:59 +00:00
pooka efe797dc32 * version the registration interface
* destroy all created locks
2007-11-28 16:59:02 +00:00
pooka bc3b2e6a39 PUD_CONF_IOCTL is a goner. Noticed by dillo. 2007-11-22 13:51:59 +00:00
pooka 2bde3fa647 Support bdev/cdev ioctl. 2007-11-22 11:26:27 +00:00
pooka 750d633918 Add support for block devices. 2007-11-21 18:10:48 +00:00
pooka 2f06310f4b mmap should return -1 on error. Also, shuffle functions around to
make this more feng shui.
2007-11-21 11:19:44 +00:00
dogcow 37ec50ec33 silence, might be used uninitialized warning! 2007-11-21 01:31:34 +00:00
pooka 001b8e986e Add initial support for userspace block/char device drivers. This
is a very rough cut supporting only open/close/read/write for char
devices for the time being.  It also takes some extra liberties in
error value processing wrt. to the request-response protocol, but
that will be fixed later.  On the bright side, I haven't managed
to crash my test kernel in several hours with this anymore, so it
can be considered extra-stable ...  All in all this is remarkably
similar to puffs from multiple angles (well, actually, big surprise
there) and these two will share more and more code in the future.

The hardest part, coming up with the name, was done by agc.  I'm
not exactly sure what "pud" is supposed to stand for, but if my
British is anything close to par, I understand that "pud" over
there can stand for just about anything, so it's a safe bet.
2007-11-20 18:47:05 +00:00