summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/devfs/devfs_tree.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-17/+19
| | | | kernel compile
* Rename one of the two devfs_link's to devfs_makelink.eivind1998-12-101-2/+2
|
* Staticize.eivind1998-11-261-2/+2
|
* DEVFS completely bypasses the cdevsw and bdevsw tables now.julian1998-07-051-3/+3
| | | | | | | | 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..
* There is no such thing any more as "struct bdevsw".julian1998-07-041-3/+3
| | | | | | | | | | | | | | | | | | 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.
* Removed unused includes.bde1998-06-211-3/+1
|
* Make the devfs SLICE option a standard type option.julian1998-04-201-4/+8
| | | | (hopefully it will go away eventually anyhow)
* Add changes and code to implement a functional DEVFS.julian1998-04-191-40/+120
| | | | | | | | | | | | | | | | | | | | | 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.
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.des1998-04-171-4/+4
|
* Add two new functions, get{micro|nano}time.phk1998-03-261-3/+3
| | | | | | | | | | | | They are atomic, but return in essence what is in the "time" variable. gettime() is now a macro front for getmicrotime(). Various patches to use the two new functions instead of the various hacks used in their absence. Some puntuation and grammer patches from Bruce. A couple of XXX comments.
* add copyrightsjulian1998-01-021-3/+25
|
* fix slight breakages from PHK's VFS work.julian1997-11-081-1/+3
| | | | also remove irrelevant copyright, now that all that code has gone away.
* 1/ by default make all versions of the same device get the same vnode.julian1997-10-161-2/+2
| | | | | 2/ Show the dummy mount in the mount list. it cannot be reached (that I know of) but puting it there, means that disks mounted from devfs will have their things such as the superblock and the bitmaps, synced to disk :)
* some cleanups of init code, and changes needed to support disk layering.julian1997-10-161-1/+2
|
* if we free all the links to a node, then by definitionjulian1997-10-121-2/+1
| | | | | | | we freed the name we used to find it.. SO DON'T free it again later! pointy hat over here please..
* Last major round (Unless Bruce thinks of somthing :-) of malloc changes.phk1997-10-121-4/+4
| | | | | | | | Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
* Distribute and statizice a lot of the malloc M_* types.phk1997-10-111-1/+5
| | | | Substantial input from: bde
* Allow a deleted deveice to delte it's nodes in other mounted devfsjulian1997-10-101-1/+7
| | | | filesystems even if not in SPLIT_DEVS mode.
* devfs changes to allow old (better) and newer (braindamaged) behaviour.julian1997-09-161-10/+24
| | | | I'm going to try migrate back, while keeping the newer code.
* Removed yet more vestiges of config-time swap configuration and/orbde1997-09-071-4/+2
| | | | cleaned up nearby cruft.
* Removed vestiges of config-time "argument processing" configuration.bde1997-09-071-2/+2
|
* two fixes submitted by Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>julian1997-08-261-3/+4
| | | | fixes problems in unmounting and propogation.
* two tiny typo'sjulian1997-07-141-3/+3
|
* Fix the umount problems for DEVFS.joerg1997-05-031-1/+7
| | | | | PR: 3276 & 3469 (the fixes), 2738, 2033 (reports) Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
* Removed unused or apparently-unused #includes, especially of thebde1997-04-101-5/+2
| | | | deprecated header <sys/dir.h>.
* Make this compile again after the Lite2 merge.mpp1997-02-121-3/+5
| | | | | | | | Call vget/VOP_UNLOCK with the correct number of arguments. Call vn_lock where appropriate. vfs_goneall is now replaced by VOP_REVOKE. Submitted by: bde
* changes to make devfs more 'normal'julian1996-11-211-142/+175
| | | | | | | | | | | | | | 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.
* devfs_tree.c: improve our bdevvp() function.phk1996-10-281-2/+6
| | | | devfs_vnops.c: move a debug printf to be consistent.
* Started unspamming <sys/systm.h>. Don't include <machine/stdarg.h>bde1996-09-291-1/+3
| | | | | | to get the declaration of va_list; just use _BSD_VA_LIST. Fixed the 2 places that need <machine.stdarg.h> but didn't include it explicitly.
* Updated #includes to 4.4Lite style.bde1996-09-101-14/+15
|
* Submitted by: doug Rabson (dfr@render.com)julian1996-08-131-2/+3
| | | | | | | | | cleaning up some of the vnode usage.. (I'm sure it still needs more..) where can one find out what each vfs call expects to be locked on completion, and how can one find out what each layer expects to be freed on error.?
* symlink support in devfs.julian1996-08-131-27/+52
| | | | | | | | | | | | | | it only barely works so don't get too carried away.. I noticed that teh symlink is length 0.. I guess I'll fix that tomorrow.. it also sometimes panics with "cleaned vnode isn't" but it's not more broken than it was before.. I really want to go over it with someone who understands the lifecycle of a vnode better than I do.. terry? kirk? david? john?
* Only use the special bdevvp() for DEVFS if DEVFS_ROOT is defined. Thisbde1996-07-301-1/+3
| | | | makes option DEVFS safe to use again (although mounting devfs is unsafe).
* DEVFS needs a special bdevvp().phk1996-07-241-1/+37
| | | | I just noticed some junk in my patch. I'll remove that in a sec.
* Clean up -Wunused warnings. Julian asked me to just ifdefgpalmer1996-06-121-7/+2
| | | | | | out unused code as this is still work in progress. Reviewed by: bde
* Fix the reproto.sh script that was broken after my KNFification.joerg1996-04-071-16/+32
| | | | Pointed out by: bde
* KNFify the function definitions. It's harder to grep around when thejoerg1996-04-061-26/+39
| | | | function names don't start in column 1.
* Merged devfs_add_devsw() into devfs_add_devswf()scrappy1996-04-031-34/+17
|
* Made the src code match the man page.scrappy1996-04-021-28/+2
| | | | Removed dev_link() and dev_linkf(), replacing dev_linkf() with devfs_link()
* Added dev_linkf() function (dev_link() + printf-style arguments)scrappy1996-03-281-1/+54
| | | | Reviewed by: julian@freebsd.org
* Submitted by: "Marc G. Fournier" <scrappy@ki.net>julian1996-03-251-7/+8
| | | | allows correct creation of subdirectories in devfs_add_devswf()
* really stupid mistake that stopped devices from appearing on the fly in mountedjulian1996-02-181-2/+5
| | | | | | | | | DEVFS filesystems.. - if ( error = dev_add_name(child->name,parent->dnp + if ( error = dev_add_name(child->name,falias->dnp Ok bruce, this is the one you were seeing..
* make devfs_add_devswf a little smarter about '/';phk1996-01-281-5/+9
|
* Make devfs_add_devfsf() which takes printf style args.phk1996-01-251-1/+38
|
* Slightly improved debug messages for inserting new itemsjulian1996-01-211-9/+13
|
* oops.julian1996-01-211-4/+4
| | | | get the last edit right
* Submitted by: Bruce Evans (bde)julian1996-01-211-4/+8
| | | | | better naming for exported devfs function and better place for the prototype
* Remove unnecessary debug printf's ("no references", "bad-id") - thesepeter1996-01-021-1/+13
| | | | | | | | | were development aids :-) and normal events. Initialise the "hidden" blueprint mount "mnt_op" and "mnt_vfc" fields so that a statfs() on a devfs file would not panic anymore. Fixes PR#911. Head-scratching by: Julian and Peter
* clean a few DEVFS things..julian1995-12-091-91/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix a bug where you couldn't place devices in the root directory of devfs remove deprecated routines On my machine devfs now shows: julian@erf.tfs.com: julian@erf.tfs.com: ls -RF bpf0 mem ptypb spkr ttyp8 bpf1 null ptypc stderr ttyp9 bpf2 pcaudio ptypd stdin ttypa bpf3 pcaudioctl ptype stdout ttypb console pt ptypf tty ttypc cuaa0 ptyp0 random ttyd0 ttypd cuaia0 ptyp1 rsd0 ttyid0 ttype cuala0 ptyp2 rsd1 ttyld0 ttypf fd/ ptyp3 rvn ttyp0 tun0 fd0.1440 ptyp4 rworm ttyp1 urandom fd1.1200 ptyp5 scsi/ ttyp2 vn io ptyp6 sd0 ttyp3 zero kmem ptyp7 sd1 ttyp4 lkm ptyp8 snp0 ttyp5 log ptyp9 snp1 ttyp6 lpt0 ptypa snp2 ttyp7 ./fd: 0 15 21 28 34 40 47 53 6 9 1 16 22 29 35 41 48 54 60 10 17 23 3 36 42 49 55 61 11 18 24 30 37 43 5 56 62 12 19 25 31 38 44 50 57 63 13 2 26 32 39 45 51 58 7 14 20 27 33 4 46 52 59 8 ./scsi: sctarg ssc julian@erf.tfs.com: which is all devices really there except for disk slices/partitions.. (if I don't have it it's not there, which has GOT to be an improvement..) no DEVFS fixes from device maintainers yet?
* Pass 3 of the great devsw changesjulian1995-12-081-4/+13
| | | | | | | | | | | | | | | | | | | | | | | most devsw referenced functions are now static, as they are in the same file as their devsw structure. I've also added DEVFS support for nearly every device in the system, however many of the devices have 'incorrect' names under DEVFS because I couldn't quickly work out the correct naming conventions. (but devfs won't be coming on line for a month or so anyhow so that doesn't matter) If you "OWN" a device which would normally have an entry in /dev then search for the devfs_add_devsw() entries and munge to make them right.. check out similar devices to see what I might have done in them in you can't see what's going on.. for a laugh compare conf.c conf.h defore and after... :) I have not doen DEVFS entries for any DISKSLICE devices yet as that will be a much more complicated job.. (pass 5 :) pass 4 will be to make the devsw tables of type (cdevsw * ) rather than (cdevsw) seems to work here.. complaints to the usual places.. :)
OpenPOWER on IntegriCloud