summaryrefslogtreecommitdiff
path: root/share/examples
AgeCommit message (Collapse)Author
2010-03-07Add a simple tty server which attaches to /dev/ttyU in the rumppooka
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-07Pause after probe here too, so that you can amuse yourself bypooka
unplugging and replugging devices and looking at the detach/attach feedback messages.
2010-02-18In "probeonly", pause after bootstrap to make "monkey plug andpooka
unplug device, monkey see fancy dmesg info" possible.
2010-02-17* support cd devices (@scsibus & @atapibus, per libumass)pooka
* support cd9660 * add "probe" keyword, which just prints the dmesg in verbose form
2010-02-10rumpusbhc is now ugenhcpooka
2010-02-05The rumpdev_net80211 until-recently-wip component is now rumpnet_net80211.pooka
2010-01-31Add an example on how to use sysmon watchdogs in rump.pooka
2010-01-11descend into new subdirspooka
2010-01-11Read mouse events from wsmouse and move a silly curses cursor aroundpooka
the screen (quite poorly, i might add ;).
2010-01-11Add an example program which reads keypresses from the ukbd driverpooka
(via wscons) and simply prints them on screen.
2010-01-09Stick a top-level subdir-makefile here for easy build-testing.pooka
2009-12-22Add a simple example of how to run the kernel umass/USB in userspacepooka
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-20Add a simple terminal program which uses a rump kernel for a ucom@usbpooka
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-19Use RUMP_ACTION to avoid having to specify the same informationpooka
in the Makefiles of all the consumers.
2009-12-15Add an example to show how to print with a rump ulpt driver.pooka
2009-12-05Use puffs_kernerr_abort as the error handler.pooka
2009-12-05Include public interface describing user-kernel interface from include/dev/dm.haad
2009-12-05Fix some small bugs pointed out byt pooka@. Remove not needed -D defines andhaad
do not include private kernel header files. Instead copy part of it to test program.
2009-12-04Add small testing program which uses RUMP libdm to test device-mapperhaad
functionality in userspace.
2009-12-04Remove no longer supported suspend code.pooka
2009-11-03* use rump_boot_sethowto()pooka
* fail in a nicer way if interface device is not probed
2009-10-20fix warnings, update interface to use rump_pubpooka
2009-10-14WARNSpooka
2009-10-14WARNS + make compilepooka
2009-10-13Try ffs is msdosfs mount fails -- I happened to have one USB stickpooka
where the file system is ffs.
2009-10-05Add an example program which shows how to do "ifconfig rum0 up".pooka
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-05Add an example program which shows how to mount and read files frompooka
an msdos file system which is located on a usb stick. What makes this special is that the USB driver stack (and the file system driver, of course) is run in rump instead of in the host kernel.
2009-09-08* fix error printpooka
* adjust resulting image minsize
2009-09-08Add a simple proof-of-concept program which shows how to use thepooka
kernel cgd driver in an application which encrypts and decrypts files. The cgd driver is running completely in userspace and requires no special access privileges. For example: golem> dmesg > dmesg.txt # write encrypted dmesg.txt to encrypted.img golem> ./img2cgd write encrypted.img dmesg.txt /cryptfile's passphrase: # read encrypted.img and output decrypted contents to decrypted.txt golem> ./img2cgd read encrypted.img decypted.txt /cryptfile's passphrase: golem> diff dmesg.txt decypted.txt # but when entering a different password: golem> ./img2cgd read encrypted.img decypted.txt /cryptfile's passphrase: golem> diff dmesg.txt decypted.txt Binary files dmesg.txt and decypted.txt differ Currently the utility writes the data length in a proprietary format, but I'll convert it to use a real disklabel RSN. Then it can be used to create cgd-encrypted disk images. This program can later be used as a base for a utility to create cgd-encrypted images of a standard NetBSD build. Idea for such a tool and hence the inspiration for this simple example program from Roland Dowdeswell.
2009-06-19Clean up after moving the iSCSI initiator to src/usr.sbin/iscsi/initiatoragc
2009-05-14Add the getdate(3) function and getdate_err value, conforming to IEEEginsbach
Std 1003.1 (``POSIX.1'') and the Open Group Base Specifications X/Open System Interfaces extension (``XSI'').
2009-01-19Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used tojmmv
build it. 0.6 is going to be imported in external/bsd/atf, with all the necessary Makefiles in that same hierarchy.
2008-11-26puffs_setfhsize() in initpooka
2008-10-29Add example pppd configuration for bluetooth DUN with Telus Mobility.jmcneill
2008-10-25Add an example script to connect to Cingular's 3G service.christos
2008-09-12fix more A0christos
2008-08-12Add -p for presenting the directory listing in the original case.pooka
2008-05-25Add RCS Id. Sort options. Fix xref.wiz
XXX: virtdir(3) does not exist, but I do not know to which page the link should point instead.
2008-03-09MKMAN should not be set in source makefiles. Use NOMAN.dholland
2008-02-28Introduce a new kauth action, KAUTH_NETWORK_NFS, and two requests,elad
KAUTH_REQ_NETWORK_NFS_EXPORT and KAUTH_REQ_NETWORK_NFS_SVC, and use them to replace two KAUTH_GENERIC_ISSUSER calls in the NFS code. Also replace two more with KAUTH_SYSTEM_MKNOD, where appropriate. Documetnation and examples updated. More to come.
2008-02-28Factor out the guts of get/setparam so it can be used from the compat code.elad
Make the FreeBSD and Linux compat code convert the parameters to their native representation and call the native routines. Remove KAUTH_PROCESS_SCHEDULER_GET/SET. Update documentation and examples. XXX: For now, only the Linux compat code does the priority conversion XXX: right. Linux priority conversion code from yamt@, thanks! Okay yamt@.
2008-02-16Fold KAUTH_REQ_PROCESS_SCHEDULER_* to KAUTH_PROCESS_SCHEDULER_*. In otherelad
words, don't pass an action and a request, and just use a single action to indicate what is the operation in question. This is the first step in fixing PR/37986, which calls for policy/priority checking in the secmodel code. Right now we're lacking room for another parameter required to make a decision, and this change makes room for such.
2008-02-10make sure we have an __UNCONST definition available, for portability reasons.agc
2008-02-07Define the version of the FUSE ABI we're working with specifically.agc
Don't hand all the argv options to fuse_main() - it's only interested in the ones we haven't parsed ourselves. These changes make the initiator compile and perform discovery successfully on FreeBSD 6.3. Full login doesn't work yet due to a KSE related bug.
2008-02-07Set a definitive FUSE ABI before including fuse.h, to avoid situationsagc
where different operating ssystems default to different levels.
2008-02-02Add, document, and use KAUTH_REQ_PROCESS_KTRACE_PERSISTENT.elad
2008-02-01Replace a KAUTH_GENERIC_ISSUSER in the cpuctl code with a proper kauthelad
request. Reviewed by ad@, tested by me.
2008-01-30Use proper kauth(9) actions/requests for native scheduler stuff and theelad
recently introduced processor-sets. Discussed with and okay rmind@, yamt@, and christos@.
2008-01-23Tons of process scope changes.elad
- Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related requests, and add specific requests for set/get scheduler policy and set/get scheduler parameters. - Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related requests. - Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI. - Add requests for the KAUTH_PROCESS_CANSEE action, indicating what process information is being looked at (entry itself, args, env, open files). - Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get. - Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get. - Make bsd44 secmodel code handle the newly added rqeuests appropriately. All of the above make it possible to issue finer-grained kauth(9) calls in many places, removing some KAUTH_GENERIC_ISSUSER requests. - Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}. Discussed with christos@ and yamt@.
2008-01-07Make fork use kauth.elad
Been running in my tree for over a month at least. Reviewed and okay yamt@, and special thanks to him as well as rittera@ for making this possible through fixing NDIS to not call fork1() with l1 != curlwp.