summaryrefslogtreecommitdiff
path: root/sys/dev/ramdisk.c
AgeCommit message (Collapse)Author
2001-07-08Add missing call to minor() in RDLABELDEV macro.Todd C. Miller
This only worked before by luck. Fixes floppy panic in -current. Thanks to krw@ for the DDB traceback, it helped ;-)
2001-06-27zap old vmArtur Grabowski
2001-05-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
1999-11-16We don't need a prototype for kmem_alloc.Artur Grabowski
1999-09-14vaddr_t/vsize_tMichael Shalayeff
1999-02-26compatibility with uvm kmem allocatorsArtur Grabowski
1998-10-03Add a "spoofonly" argument to readdisklabel() which will be used toTodd C. Miller
implement an ioctl to get a spoofed label even for disks that have a label on them.
1997-10-18avoid "no disklabel" error messagesTheo de Raadt
1997-02-06Changes to ramdisk driver to support disklabels. Work done by Theo.Dale S. Rahn
This will require changes for each machine type. changes to MAKEDEV, suggest treating rd like sd --- sd*|vnd*|ccd*|rd*) ... rd*) name=rd; blk=17; chr=17;; --- Make certain that majors and minors are correct conf.c add a entry in cdevsw for rd (previously was only in bdev) --- cdev_decl(rd); ... struct cdevsw cdevsw[] = { ... cdev_disk_init(NRD,rd), /* 17 ram disk driver*/ --- other changes to how rdconfig is called may be appropriate, it must now be configured using the "raw" parition typically 'c'.
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-04-18NetBSD 960317 mergeNiklas Hallqvist
1996-01-12from netbsd;Theo de Raadt
New generic disk framework. Highlights: New metrics handling. Metrics are now kept in the new `struct disk'. Busy time is now stored as a timeval, and transfer count in bytes. Storage for disklabels is now dynamically allocated, so that the size of the disk structure is not machine-dependent. Several new functions for attaching and detaching disks, and handling metrics calculation. Old-style instrumentation is still supported in drivers that did it before. However, old-style instrumentation is being deprecated, and will go away once the userland utilities are updated for the new framework. For usage and architectural details, see the forthcoming disk(9) manual page.
1995-11-19from netbsd; get size of softc rightTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt