summaryrefslogtreecommitdiff
path: root/sys/miscfs/devfs
Commit message (Collapse)AuthorAgeFilesLines
* fix confusion added by poul's commitJulian Elischer1997-08-271-8/+1
| | | | | | | | if you remove the 'then' clause of an 'if' the next command becomes the then clause, which is confusing at least. Notes: svn path=/stable/2.2/; revision=28817
* YAMFC: bring devfs_tree.c -> 1.38Julian Elischer1997-08-273-81/+24
| | | | | | | | | devfs_vfsops.c -> 1.18 devfs_vnops.c -> 1.37 various bug fixes. Notes: svn path=/stable/2.2/; revision=28816
* YAMFCPoul-Henning Kamp1996-11-235-155/+251
| | | | Notes: svn path=/stable/2.2/; revision=19934
* devfs_tree.c: improve our bdevvp() function.Poul-Henning Kamp1996-10-282-4/+8
| | | | | | | devfs_vnops.c: move a debug printf to be consistent. Notes: svn path=/head/; revision=19230
* Just because something doesn't make sense doesn't mean it should be illegal..Julian Elischer1996-10-171-2/+1
| | | | | | | | | | | | | just ignore it instead. =================================================================== RCS file: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v retrieving revision 1.30 diff -r1.30 devfs_vnops.c 631d630 < (vap->va_size != VNOVAL) || /* doesn't make sense in devfs */ Notes: svn path=/head/; revision=19005
* actually impliment permissions for teh chown/chmod/etc functionsJulian Elischer1996-10-161-31/+88
| | | | | | | | that resemble what the man pages say. also fix braino (type last week) Notes: svn path=/head/; revision=18970
* Allow the utimes call to work on devfs nodes.Julian Elischer1996-10-161-3/+2
| | | | Notes: svn path=/head/; revision=18960
* reads and writes to devices update m and a timesJulian Elischer1996-10-121-3/+9
| | | | | | | | | add some security onn the chmod/chown operations should now be root or owner (still needs more thought but kinda-plugs tow holes pointed out by bde) Notes: svn path=/head/; revision=18876
* Started unspamming <sys/systm.h>. Don't include <machine/stdarg.h>Bruce Evans1996-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. Notes: svn path=/head/; revision=18556
* Whoops, I should've used the LINT config file. More ts -> tv changesNate Williams1996-09-201-8/+8
| | | | | | | for timespec structure. Notes: svn path=/head/; revision=18413
* fix the ability of the VFS to reclaim devfs nodes correctly..Julian Elischer1996-09-111-2/+3
| | | | | | | (was resulting in panics, especially when DIAGNOSTIC was set.) Notes: svn path=/head/; revision=18242
* Updated #includes to 4.4Lite style.Bruce Evans1996-09-104-31/+34
| | | | Notes: svn path=/head/; revision=18207
* Eliminated nested include of <sys/unistd.h> in <sys/file.h> in the kernel.Bruce Evans1996-09-031-2/+2
| | | | | | | | | | Include it directly in the few places where it is used. Reduced some #includes of <sys/file.h> to #includes of <sys/fcntl.h> or nothing. Notes: svn path=/head/; revision=18020
* Submitted by: doug Rabson (dfr@render.com)Julian Elischer1996-08-132-9/+13
| | | | | | | | | | | | 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.? Notes: svn path=/head/; revision=17588
* symlink support in devfs.Julian Elischer1996-08-132-38/+96
| | | | | | | | | | | | | | | | | 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? Notes: svn path=/head/; revision=17567
* Only use the special bdevvp() for DEVFS if DEVFS_ROOT is defined. ThisBruce Evans1996-07-301-1/+3
| | | | | | | makes option DEVFS safe to use again (although mounting devfs is unsafe). Notes: svn path=/head/; revision=17349
* DEVFS needs a special bdevvp().Poul-Henning Kamp1996-07-241-1/+37
| | | | | | | I just noticed some junk in my patch. I'll remove that in a sec. Notes: svn path=/head/; revision=17273
* Cosmetic change: make the ``ready to run'' line match theGary Palmer1996-06-151-2/+2
| | | | | | | | ``ready for devices'' printed out earlier by changing `devs ' to be `DEVFS: ' Notes: svn path=/head/; revision=16397
* Clean up -Wunused warnings. Julian asked me to just ifdefGary Palmer1996-06-123-47/+29
| | | | | | | | | out unused code as this is still work in progress. Reviewed by: bde Notes: svn path=/head/; revision=16321
* Fix the reproto.sh script that was broken after my KNFification.Joerg Wunsch1996-04-075-43/+100
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=15083
* KNFify the function definitions. It's harder to grep around when theJoerg Wunsch1996-04-063-32/+50
| | | | | | | function names don't start in column 1. Notes: svn path=/head/; revision=15080
* Merged devfs_add_devsw() into devfs_add_devswf()Marc G. Fournier1996-04-031-34/+17
| | | | Notes: svn path=/head/; revision=15012
* Made the src code match the man page.Marc G. Fournier1996-04-021-28/+2
| | | | | | | Removed dev_link() and dev_linkf(), replacing dev_linkf() with devfs_link() Notes: svn path=/head/; revision=14993
* Added dev_linkf() function (dev_link() + printf-style arguments)Marc G. Fournier1996-03-281-1/+54
| | | | | | | Reviewed by: julian@freebsd.org Notes: svn path=/head/; revision=14876
* Submitted by: "Marc G. Fournier" <scrappy@ki.net>Julian Elischer1996-03-251-7/+8
| | | | | | | allows correct creation of subdirectories in devfs_add_devswf() Notes: svn path=/head/; revision=14820
* really stupid mistake that stopped devices from appearing on the fly in mountedJulian Elischer1996-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.. Notes: svn path=/head/; revision=14139
* 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
* make devfs_add_devswf a little smarter about '/';Poul-Henning Kamp1996-01-281-5/+9
| | | | Notes: svn path=/head/; revision=13663
* Make devfs_add_devfsf() which takes printf style args.Poul-Henning Kamp1996-01-251-1/+38
| | | | Notes: svn path=/head/; revision=13629
* Slightly improved debug messages for inserting new itemsJulian Elischer1996-01-211-9/+13
| | | | Notes: svn path=/head/; revision=13528
* oops.Julian Elischer1996-01-211-4/+4
| | | | | | | get the last edit right Notes: svn path=/head/; revision=13527
* Submitted by: Bruce Evans (bde)Julian Elischer1996-01-212-5/+8
| | | | | | | | better naming for exported devfs function and better place for the prototype Notes: svn path=/head/; revision=13526
* Remove unnecessary debug printf's ("no references", "bad-id") - thesePeter Wemm1996-01-022-2/+23
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=13164
* recording cvs-1.6 file deathPeter Wemm1995-12-302-943/+0
| | | | Notes: svn path=/cvs2svn/branches/ATT/; revision=13122
* Restored lost prototypes.Bruce Evans1995-12-143-3/+5
| | | | Notes: svn path=/head/; revision=12832
* Another mega commit to staticize things.Poul-Henning Kamp1995-12-143-107/+107
| | | | Notes: svn path=/head/; revision=12820
* clean a few DEVFS things..Julian Elischer1995-12-092-93/+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? Notes: svn path=/head/; revision=12691
* Pass 3 of the great devsw changesJulian Elischer1995-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.. :) Notes: svn path=/head/; revision=12675
* OK, that's it..Julian Elischer1995-11-291-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | That's EVERY SINGLE driver that has an entry in conf.c.. my next trick will be to define cdevsw[] and bdevsw[] as empty arrays and remove all those DAMNED defines as well.. Each of these drivers has a SYSINIT linker set entry that comes in very early.. and asks teh driver to add it's own entry to the two devsw[] tables. some slight reworking of the commits from yesterday (added the SYSINIT stuff and some usually wrong but token DEVFS entries to all these devices. BTW does anyone know where the 'ata' entries in conf.c actually reside? seems we don't actually have a 'ataopen() etc... If you want to add a new device in conf.c please make sure I know so I can keep it up to date too.. as before, this is all dependent on #if defined(JREMOD) (and #ifdef DEVFS in parts) Notes: svn path=/head/; revision=12517
* Introduced a type `vop_t' for vnode operation functions and usedBruce Evans1995-11-092-90/+90
| | | | | | | | | | | | | | | | | | 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
* almost entirely cosmetic changesJulian Elischer1995-10-102-60/+60
| | | | | | | just keeping the sources in sync with my own set.. Notes: svn path=/head/; revision=11393
* find some way of letting a node know where in its parent's directory structureJulian Elischer1995-10-042-9/+13
| | | | | | | | | | | 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
* added support for link, and remove (unlink)Julian Elischer1995-09-191-8/+150
| | | | | | | | | can now ln /devs/disks/floppy/fd1.1200 to fd1 and remove unwanted dirs and devices etc. Still has a fatal bug.. don't use yet :) Notes: svn path=/head/; revision=10892
* Submitted by: bdeJulian Elischer1995-09-141-1/+1
| | | | | | | prototype file follows the sources.. Notes: svn path=/head/; revision=10724
* Fixed init functions argument type - caddr_t -> void *. Fixed a couple ofDavid Greenman1995-09-091-2/+2
| | | | | | | compiler warnings. Notes: svn path=/head/; revision=10653
* More hacking on devfs..Julian Elischer1995-09-093-179/+469
| | | | | | | | | | | | | | | I can now do an mv on devices and directories in devfs This was the hardest part.. link, delete and symlink will follow in short order. This code works but has definitly got vnode locking problems I am electing to get the structure of it working before spending too much time on the vnode confusion so it's probably not reliable at the moment.. never-the less it looks good. :) Notes: svn path=/head/; revision=10648
* added the dev_link external registrationJulian Elischer1995-09-081-8/+32
| | | | | | | | | | | used to produce a second link to an already exixting device e.g. dev_add /disks/sd0 dev_link /scsi/bus0/targ0/lun0 to /disks/sd0 (not real syntax) Notes: svn path=/head/; revision=10622
* brought the README in to line with present code (still a bit cryptic)Julian Elischer1995-09-071-24/+15
| | | | Notes: svn path=/head/; revision=10599
* more cleanups.. lots of code shuffled around tooJulian Elischer1995-09-074-240/+239
| | | | | | | | routines renamed.. more simplifications, some warnings squashed. Notes: svn path=/head/; revision=10598
* Suggested by: :) bde of courseJulian Elischer1995-09-064-127/+155
| | | | | | | | | | | | | | | | | | | 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