aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/null
Commit message (Collapse)AuthorAgeFilesLines
* Use __FBSDID().David E. O'Brien2003-08-241-1/+3
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* /dev/null and /dev/zero does not need GiantPoul-Henning Kamp2003-06-241-1/+2
| | | | Notes: svn path=/head/; revision=116794
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-28/+14
| | | | | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
* Don't use evil casts in cdevsw initialization.Poul-Henning Kamp2003-03-021-5/+13
| | | | Notes: svn path=/head/; revision=111758
* Warns and lint fix. Nearly all trivial stuff.Mark Murray2003-02-271-7/+8
| | | | Notes: svn path=/head/; revision=111630
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-1/+1
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-1/+1
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Everywhere else, an argument passed to a device containing flagsMark Murray2002-09-211-5/+4
| | | | | | | is called "flags". Make it so here. Notes: svn path=/head/; revision=103745
* Modernise the cdevsw WRT to (unused) kqueue.Mark Murray2002-08-021-0/+2
| | | | Notes: svn path=/head/; revision=101219
* Rename DIOCGKERNELDUMP to DIOCSKERNELDUMP as it strictly speakingPoul-Henning Kamp2002-04-091-1/+1
| | | | | | | | | is a "set" not a "get" operation. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=94272
* Move generic disk ioctls from <sys/disklabel.h> to <sys/disk.h>.Poul-Henning Kamp2002-04-081-1/+1
| | | | | | | Sponsored by: DARPA & NAI Labs Notes: svn path=/head/; revision=94182
* Change the suser() API to take advantage of td_ucred as well as do aJohn Baldwin2002-04-011-1/+1
| | | | | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@ Notes: svn path=/head/; revision=93593
* Here follows the new kernel dumping infrastructure.Poul-Henning Kamp2002-03-311-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Caveats: The new savecore program is not complete in the sense that it emulates enough of the old savecores features to do the job, but implements none of the options yet. I would appreciate if a userland hacker could help me out getting savecore to do what we want it to do from a users point of view, compression, email-notification, space reservation etc etc. (send me email if you are interested). Currently, savecore will scan all devices marked as "swap" or "dump" in /etc/fstab _or_ any devices specified on the command-line. All architectures but i386 lack an implementation of dumpsys(), but looking at the i386 version it should be trivial for anybody familiar with the platform(s) to provide this function. Documentation is quite sparse at this time, more to come. Details: ATA and SCSI drivers should work as the dump formatting code has been removed. The IDA, TWE and AAC have not yet been converted. Dumpon now opens the device and uses ioctl(DIOCGKERNELDUMP) to set the device as dumpdev. To implement the "off" argument, /dev/null is used as the device. Savecore will fail if handed any options since they are not (yet) implemented. All devices marked "dump" or "swap" in /etc/fstab will be scanned and dumps found will be saved to diskfiles named from the MD5 hash of the header record. The header record is dumped in readable format in the .info file. The kernel is not saved. Only complete dumps will be saved. All maintainer rights for this code are disclaimed: feel free to improve and extend. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=93496
* Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp2001-03-261-2/+0
| | | | | | | the bit-bucket. Notes: svn path=/head/; revision=74810
* Convert more malloc+bzero to malloc+M_ZERO.David Malone2000-12-081-2/+1
| | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Notes: svn path=/head/; revision=69781
* During a verbose boot, call the null device 'null' rather than 'null0' toJohn Baldwin2000-10-061-1/+1
| | | | | | | be more consistent with the rest of the kernel. Notes: svn path=/head/; revision=66709
* Move sys/dev/nulldev to sys/dev/null to be more consistent with namingJohn Baldwin2000-10-021-2/+2
| | | | | | | under sys/dev. Notes: svn path=/head/; revision=66560
* Small style change; make function names less likely to clash withMark Murray2000-07-091-7/+7
| | | | | | | existing names. "null" is too common a string; use "null_". Notes: svn path=/head/; revision=62843
* New machine independant /dev/null and /dev/zero driver. This device isMark Murray2000-06-251-0/+137
severely stripped down compared with its predecessor, and is measurably a _lot_ faster. Many thanks to Jeroen van Gelderen for lots of good ideas. There is still a problem with this; it is written as a mudule, and as such is theoretically unloadable. However, there is no refcounting done as I would prefer to do that a'la device_busy(9), rather than some "home-rolled" scheme. The point is pretty moot, as /dev/null is effectively compulsory. Reviewed by: dfr Notes: svn path=/head/; revision=62052