summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/devfs
Commit message (Collapse)AuthorAgeFilesLines
* devfs_tree.c: improve our bdevvp() function.phk1996-10-282-4/+8
| | | | devfs_vnops.c: move a debug printf to be consistent.
* Just because something doesn't make sense doesn't mean it should be illegal..julian1996-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 */
* actually impliment permissions for teh chown/chmod/etc functionsjulian1996-10-161-31/+88
| | | | | that resemble what the man pages say. also fix braino (type last week)
* Allow the utimes call to work on devfs nodes.julian1996-10-161-3/+2
|
* reads and writes to devices update m and a timesjulian1996-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)
* 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.
* Whoops, I should've used the LINT config file. More ts -> tv changesnate1996-09-201-8/+8
| | | | for timespec structure.
* fix the ability of the VFS to reclaim devfs nodes correctly..julian1996-09-111-2/+3
| | | | (was resulting in panics, especially when DIAGNOSTIC was set.)
* Updated #includes to 4.4Lite style.bde1996-09-104-31/+34
|
* Eliminated nested include of <sys/unistd.h> in <sys/file.h> in the kernel.bde1996-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.
* Submitted by: doug Rabson (dfr@render.com)julian1996-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.?
* symlink support in devfs.julian1996-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?
* 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.
* Cosmetic change: make the ``ready to run'' line match thegpalmer1996-06-151-2/+2
| | | | | ``ready for devices'' printed out earlier by changing `devs ' to be `DEVFS: '
* Clean up -Wunused warnings. Julian asked me to just ifdefgpalmer1996-06-123-47/+29
| | | | | | 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-075-43/+100
| | | | Pointed out by: bde
* KNFify the function definitions. It's harder to grep around when thejoerg1996-04-063-32/+50
| | | | 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..
* Fix a bunch of spelling errors in the comment fields ofmpp1996-01-301-2/+2
| | | | a bunch of system include files.
* 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-212-5/+8
| | | | | better naming for exported devfs function and better place for the prototype
* Remove unnecessary debug printf's ("no references", "bad-id") - thesepeter1996-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
* recording cvs-1.6 file deathpeter1995-12-302-943/+0
|
* Restored lost prototypes.bde1995-12-143-3/+5
|
* Another mega commit to staticize things.phk1995-12-143-107/+107
|
* clean a few DEVFS things..julian1995-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?
* 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.. :)
* OK, that's it..julian1995-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)
* Introduced a type `vop_t' for vnode operation functions and usedbde1995-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.
* almost entirely cosmetic changesjulian1995-10-102-61/+61
| | | | just keeping the sources in sync with my own set..
* find some way of letting a node know where in its parent's directory structurejulian1995-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'
* added support for link, and remove (unlink)julian1995-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 :)
* Submitted by: bdejulian1995-09-141-1/+1
| | | | prototype file follows the sources..
* Fixed init functions argument type - caddr_t -> void *. Fixed a couple ofdg1995-09-091-2/+2
| | | | compiler warnings.
* More hacking on devfs..julian1995-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. :)
* added the dev_link external registrationjulian1995-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)
* brought the README in to line with present code (still a bit cryptic)julian1995-09-071-24/+15
|
* more cleanups.. lots of code shuffled around toojulian1995-09-074-240/+239
| | | | | routines renamed.. more simplifications, some warnings squashed.
* Suggested by: :) bde of coursejulian1995-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
* more devfs cleanups..julian1995-09-065-22/+29
| | | | if this keeps simplifying there won't be any left :)
* this file replaces two others.. I haven't removed them yet, butjulian1995-09-061-0/+897
| | | | when this code seems more solid, they get the bullet.
* Added VOP_GETPAGES/VOP_PUTPAGES and also the "backwards" block countdyson1995-09-041-1/+2
| | | | for VOP_BMAP. Updated affected filesystems...
OpenPOWER on IntegriCloud