aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs/devfs/devfsdefs.h
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Make DEVFS use PHK's specinfo struct as the source of dev_t and devsw.Julian Elischer1999-08-251-7/+2
| | | | | | | | | | | In lookup() however it's the other way around as we need to supply the dev_t for the vnode, so devfs still has a copy of it stashed away. Sourcing it from the vnode in the vnops however is useful as it makes a lot of the code almost the same as that in specfs. Notes: svn path=/head/; revision=50334
* Delete stray extern declaration for non-existing variables.Peter Wemm1998-11-091-2/+1
| | | | Notes: svn path=/head/; revision=41027
* Make devfs update the atime timestamp so that 'w' works when usingSøren Schmidt1998-09-301-1/+2
| | | | | | | options DEVFS. Notes: svn path=/head/; revision=39836
* DEVFS completely bypasses the cdevsw and bdevsw tables now.Julian Elischer1998-07-051-2/+2
| | | | | | | | | | | Each devfs node has (and has had fro a while) a pointer directly to the correct cdefsw entry so just use it instead of doing the lookup. There are several other places in the kernel that still use the tables however, so they can't go away yet.. Notes: svn path=/head/; revision=37407
* There is no such thing any more as "struct bdevsw".Julian Elischer1998-07-041-2/+2
| | | | | | | | | | | | | | | | | | | | | There is only cdevsw (which should be renamed in a later edit to deventry or something). cdevsw contains the union of what were in both bdevsw an cdevsw entries. The bdevsw[] table stiff exists and is a second pointer to the cdevsw entry of the device. it's major is in d_bmaj rather than d_maj. some cleanup still to happen (e.g. dsopen now gets two pointers to the same cdevsw struct instead of one to a bdevsw and one to a cdevsw). rawread()/rawwrite() went away as part of this though it's not strictly the same patch, just that it involves all the same lines in the drivers. cdroms no longer have write() entries (they did have rawwrite (?)). tapes no longer have support for bdev operations. Reviewed by: Eivind Eklund and Mike Smith Changes suggested by eivind. Notes: svn path=/head/; revision=37389
* Add changes and code to implement a functional DEVFS.Julian Elischer1998-04-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | This code will be turned on with the TWO options DEVFS and SLICE. (see LINT) Two labels PRE_DEVFS_SLICE and POST_DEVFS_SLICE will deliniate these changes. /dev will be automatically mounted by init (thanks phk) on bootup. See /sys/dev/slice/slice.4 for more info. All code should act the same without these options enabled. Mike Smith, Poul Henning Kamp, Soeren, and a few dozen others This code does not support the following: bad144 handling. Persistance. (My head is still hurting from the last time we discussed this) ATAPI flopies are not handled by the SLICE code yet. When this code is running, all major numbers are arbitrary and COULD be dynamically assigned. (this is not done, for POLA only) Minor numbers for disk slices ARE arbitray and dynamically assigned. Notes: svn path=/head/; revision=35319
* add copyrightsJulian Elischer1998-01-021-5/+27
| | | | Notes: svn path=/head/; revision=32176
* Distribute and statizice a lot of the malloc M_* types.Poul-Henning Kamp1997-10-111-3/+1
| | | | | | | Substantial input from: bde Notes: svn path=/head/; revision=30309
* changes to make devfs more 'normal'Julian Elischer1996-11-211-4/+10
| | | | | | | | | | | | | | | | | also fixes a bug I've been chasing for a LONG TIME, due to the fact that spec_bwrite is a NOP and I didn't realise it.. old symptom: mount -t devfs devfs /mnt mount /mnt/wd0e /mnt/mnt2 umount /mnt2 <process hangs> there are some pretty large structural differences internal to devfs but outwards it should look the same. I have not yet tested extensively but will do so and fix 3 warnings tomorrow. Notes: svn path=/head/; revision=19909
* Updated #includes to 4.4Lite style.Bruce Evans1996-09-101-2/+2
| | | | Notes: svn path=/head/; revision=18207
* Fix a bunch of spelling errors in the comment fields ofMike Pritchard1996-01-301-2/+2
| | | | | | | a bunch of system include files. Notes: svn path=/head/; revision=13765
* Introduced a type `vop_t' for vnode operation functions and usedBruce Evans1995-11-091-3/+3
| | | | | | | | | | | | | | | | | | it 1138 times (:-() in casts and a few more times in declarations. This change is null for the i386. The type has to be `typedef int vop_t(void *)' and not `typedef int vop_t()' because `gcc -Wstrict-prototypes' warns about the latter. Since vnode op functions are called with args of different (struct pointer) types, neither of these function types is any use for type checking of the arg, so it would be preferable not to use the complete function type, especially since using the complete type requires adding 1138 casts to avoid compiler warnings and another 40+ casts to reverse the function pointer conversions before calling the functions. Notes: svn path=/head/; revision=12158
* find some way of letting a node know where in its parent's directory structureJulian Elischer1995-10-041-2/+3
| | | | | | | | | | | it was referenced from.. stops a rather annoying panic, but introduces a rather interesting but "I can live with it" bug `ln a b ; mv a b; echo ?` returns a rather than b.. I know why but I need to think of the 'correct' answer. at least this is 'safe' Notes: svn path=/head/; revision=11178
* Suggested by: :) bde of courseJulian Elischer1995-09-061-6/+5
| | | | | | | | | | | | | | | | | | | added prototypes for every function and put (void *) as the args to the vop array definitions. can now compile with: CWARNFLAGS?= -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \ -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \ -Winline -Wstrict-prototypes and only get errors for files external to this module: namely ./vnode_if.h ../../sys/vnode.h ../../sys/buf.h ../../miscfs/specfs/specdev.h Notes: svn path=/head/; revision=10596
* more devfs cleanups..Julian Elischer1995-09-061-5/+5
| | | | | | | if this keeps simplifying there won't be any left :) Notes: svn path=/head/; revision=10582
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8876
* remove debugging printouts unless DEVFS_DEBUG is set.Julian Elischer1995-05-031-3/+2
| | | | Notes: svn path=/head/; revision=8254
* Submitted by: julianJulian Elischer1995-04-201-45/+34
| | | | | | | | I did a cleanup on the code.. (why didn't I do that before I checked it in? I hear you ask..) Notes: svn path=/head/; revision=7957
* Reviewed by: no-one yet, but nonintrusive until configed in.. :)Julian Elischer1995-04-201-0/+195
Submitted by: julian@freebsd.org Obtained from: written from scratch Notes: svn path=/head/; revision=7946