Commit Graph

353 Commits

Author SHA1 Message Date
mbalmer
e0c22d6455 Install, and add to the set lists, example code to illustrate Lua module use. 2011-10-15 13:00:59 +00:00
mbalmer
250c0b9d25 Example files showing Lua module usage. 2011-10-15 12:58:43 +00:00
yamt
727daf99ff isempty: fix a query result type. 2011-10-13 14:40:06 +00:00
yamt
fbce579470 tweak some sql statements to improve chances to use the index. 2011-10-12 16:24:39 +00:00
yamt
49413e3775 puffs file system server backed by postgresql 2011-10-12 01:05:00 +00:00
pooka
39f08af21d mirror change of -lrumpcrypto ==> -lrumpkern_crypto 2010-12-05 20:13:26 +00:00
pooka
ed6861986e Add readme explaining which grue has ok'd the eating of some code
until recently located here.
2010-11-11 23:04:24 +00:00
pooka
26716af82d Remove some programs which live as atf tests now. 2010-11-11 23:01:00 +00:00
pooka
6c43668aa2 update component lists: scsipi is independent of umass now 2010-08-23 20:56:27 +00:00
christos
11e43416a1 Add cosmote examples. 2010-08-07 20:47:27 +00:00
pooka
3626443e21 Move the Delectable Test File System from share/examples/puffs/dtfs
to tests/fs/puffs/h_dtfs.

No functional change (apart from adjusting the Makefile for test builds).
2010-07-06 14:16:44 +00:00
pooka
14959b2e66 Reinstate the inactive operation (mostly dummy). This makes -i
work again and henceforth makes it possible to test inactive.
2010-07-06 13:56:40 +00:00
pooka
a95d92a275 send routing messages via routing sucket -- works better than via inet sucket 2010-07-04 17:24:10 +00:00
pooka
c0f3dfaa52 Fix pointer assignment in previous commit (test compile works better
when you do it with the #defines which actually compile the code
in question).
2010-07-04 15:44:46 +00:00
pooka
54c71dee8c Use a bit more than 1 byte of space for routing messages. 2010-07-04 15:31:04 +00:00
hannken
1423e65b26 Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.
2010-06-24 12:58:48 +00:00
pooka
5c46dd73a9 tty support is in rumpkern_tty now 2010-06-14 14:48:51 +00:00
pooka
78e2a9f5d1 Add a test/example program for using audio/pad in a rump kernel.
It stuffs some nice sounds into the virtual kernel's /dev/audio,
reads the PCM from /dev/pad, and writes the data to stdout from
where it can be piped to audioplay to test that things actually
work.

If you want to know the secret message, you'll just have to run
this program ;)
2010-05-01 23:31:01 +00:00
pooka
75a8418e7c fix typo in, um, copyright.
spotted by a keen-eyed enthusiast ;)
2010-03-29 11:01:16 +00:00
pooka
7336be7f86 amazing grep, how sweet the find
that saved a hack like me
script once was lost but now it's found
was -x, but now I sh
2010-03-29 02:11:14 +00:00
pooka
a7e090f70e Add an example for a rump router cluster setup along with a README.
some contributions to the code from Martti Kuparinen
2010-03-29 02:01:47 +00:00
pooka
7fb0f92c04 Check open return value and close fd when we're done. 2010-03-25 15:00:20 +00:00
pooka
07cd2d7f41 Use DIOCTUR to test if a newly configured CD drive is ready instead
of playing a random waiting game.
2010-03-22 20:37:26 +00:00
pooka
5219b831d7 Add an example/test program for rump bluetooth. This does discovery
and prints the address and name of the first peer encountered (if any):

ubt0 at uhub0 port 1
ubt0: Cambridge Silicon Radio Bluetooth USB Adapter, rev 2.00/19.15, addr 2
device ubt0, addr xx:xx:xx:xx:xx:xx
my peer: yy:yy:yy:yy:yy:yy, major class: 2 (phone)
peer name: Mokia maailmalta
2010-03-22 12:21:37 +00:00
pooka
60ab2ca5c0 Add a simple tty server which attaches to /dev/ttyU in the rump
kernel and provides the same device on the host with pud(4).  I
can succesfully talk to my u3g device using tip(1) against the
server's devices.  Some characters are lost here and there, though
(probably a problem with interrupt pipes in ugenhc).  Once that
issues is solved, there is no reason why e.g. pppd (chat) could
not be used against the server.

Now, why would anyone want to do this instead of using the kernel
driver directly?  Well, for one, on my laptop I run netbsd-5 which
doesn't have a u3g driver which supports the u3g hardware I have.

As anyone with half an eye can see, this is quite copypasted from
umserv and there is plenty of opportunity for uncopypasting for
the eager vi-wielder.
2010-03-07 23:28:14 +00:00
pooka
28ef056fc2 Pause after probe here too, so that you can amuse yourself by
unplugging and replugging devices and looking at the detach/attach
feedback messages.
2010-03-07 23:18:17 +00:00
pooka
64fbb2e2b8 In "probeonly", pause after bootstrap to make "monkey plug and
unplug device, monkey see fancy dmesg info" possible.
2010-02-18 16:14:55 +00:00
pooka
01ce72cef8 * support cd devices (@scsibus & @atapibus, per libumass)
* support cd9660
* add "probe" keyword, which just prints the dmesg in verbose form
2010-02-17 20:43:35 +00:00
pooka
7f21db1c01 rumpusbhc is now ugenhc 2010-02-10 02:31:00 +00:00
pooka
ed67da89a6 The rumpdev_net80211 until-recently-wip component is now rumpnet_net80211. 2010-02-05 22:07:51 +00:00
pooka
d5352760af Add an example on how to use sysmon watchdogs in rump. 2010-01-31 03:11:55 +00:00
pooka
1e79b062a3 descend into new subdirs 2010-01-11 02:20:06 +00:00
pooka
3816d47b2c Read mouse events from wsmouse and move a silly curses cursor around
the screen (quite poorly, i might add ;).
2010-01-11 02:18:45 +00:00
pooka
4737161def Add an example program which reads keypresses from the ukbd driver
(via wscons) and simply prints them on screen.
2010-01-11 02:16:51 +00:00
pooka
59962cc85e Stick a top-level subdir-makefile here for easy build-testing. 2010-01-09 16:19:17 +00:00
pooka
8b5875c7e6 Add a simple example of how to run the kernel umass/USB in userspace
and attach it back to the host kernel using pud(4).  The result is
pretty much indistinguisable from if kernel drivers were used.

It's possible to e.g. mount a file system backed by the userspace
block device driver:

golem> disklabel ./rumpsd0d
[...]
5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:   1994752         0     unused      0     0        # (Cyl.      0 -   3895)
 e:   1994512       240      MSDOS                     # (Cyl.      0*-   3895)

golem> s mount_msdos ./rumpsd0a /mnt
mount_msdos: "./rumpsd0a" is a non-resolved or relative path.
mount_msdos: using "/usr/home/pooka/src/umserv/rumpsd0a" instead.
mount_msdos: /usr/home/pooka/src/umserv/rumpsd0a on /mnt: Device not configured

golem> s mount_msdos ./rumpsd0e /mnt
mount_msdos: "./rumpsd0e" is a non-resolved or relative path.
mount_msdos: using "/usr/home/pooka/src/umserv/rumpsd0e" instead.
golem> df -h /mnt
Filesystem                               Size       Used      Avail %Cap Mounted on
/usr/home/pooka/src/umserv/rumpsd0e      974M       5.2M       968M   0% /mnt

etcetc.
2009-12-22 18:36:02 +00:00
pooka
ea5f9a0f11 Add a simple terminal program which uses a rump kernel for a ucom@usb
terminal and host terminal stdin/stdout for human interaction.
Tipsy just simply shovels bits between the two.  I can use my
JavaStation Krups (*) serial console with this ... without having
to worry abort those pesky usb drivers crashing my desktop kernel.

*) strictly speaking it's uwe's ;)
2009-12-20 19:50:29 +00:00
pooka
eb2ef0c632 Use RUMP_ACTION to avoid having to specify the same information
in the Makefiles of all the consumers.
2009-12-19 15:03:34 +00:00
pooka
bbf0fd9dc9 Add an example to show how to print with a rump ulpt driver. 2009-12-15 16:01:50 +00:00
pooka
a3b4e31630 Use puffs_kernerr_abort as the error handler. 2009-12-05 20:54:40 +00:00
haad
568f60a3ff Include public interface describing user-kernel interface from include/dev/dm. 2009-12-05 11:44:56 +00:00
haad
902928d6cd Fix some small bugs pointed out byt pooka@. Remove not needed -D defines and
do not include private kernel header files. Instead copy part of it to test
program.
2009-12-05 10:38:27 +00:00
haad
1a5d77acb9 Add small testing program which uses RUMP libdm to test device-mapper
functionality in userspace.
2009-12-04 22:18:30 +00:00
pooka
60c8f07a95 Remove no longer supported suspend code. 2009-12-04 13:43:28 +00:00
pooka
c2492298bf * use rump_boot_sethowto()
* fail in a nicer way if interface device is not probed
2009-11-03 18:24:21 +00:00
pooka
8eb3e364e3 fix warnings, update interface to use rump_pub 2009-10-20 02:05:45 +00:00
pooka
af40e60966 WARNS 2009-10-14 23:51:52 +00:00
pooka
8a435a0401 WARNS + make compile 2009-10-14 23:51:22 +00:00
pooka
f75f5aae15 Try ffs is msdosfs mount fails -- I happened to have one USB stick
where the file system is ffs.
2009-10-13 18:41:06 +00:00
pooka
78869832a2 Add an example program which shows how to do "ifconfig rum0 up".
What makes this special is that the USB driver stack, the rum
driver, network subroutines and net80211 are running in userspace
in a rump kernel instead of in the host kernel.
2009-10-05 13:07:28 +00:00