summaryrefslogtreecommitdiffstats
path: root/sys/tools
Commit message (Collapse)AuthorAgeFilesLines
* dheader and hheader were the same function, really, so rename one ofimp2004-12-311-35/+13
| | | | them to header, kill the other and use both with a different arg...
* Use functions to make the program clearer.imp2004-12-311-125/+144
|
* Allow -d and -h as command line flags. These are used to generateimp2004-12-301-126/+163
| | | | | only the .h or _data.h files respectively. Restructure code to allow for this.
* Rather than casting through a (void *) to avoid the aliasing warning,imp2004-12-131-3/+3
| | | | | | | | | do things correctly from an aliasing perspective. Put the vop_generic_args element as the first element for all the vop_*_args and adjust the code to take the address of that instead of the structure. OK'd based on a vague description by: phk
* Cast from the specific vop_*_args to vop_generic_args via a (void *)imp2004-12-131-1/+1
| | | | | | | | | | pointer to eliminate the hundreds of warnings that we have in tree at the moment. # Chances are good that all the struct vop_*_args should have, as its # first element, the struct vop_generic_args, and when necessary to # reference it, we just take its address rather than going through # this double case.
* Back when VOP_* was introduced, we did not have new-style structphk2004-12-011-7/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initializations but we did have lofty goals and big ideals. Adjust to more contemporary circumstances and gain type checking. Replace the entire vop_t frobbing thing with properly typed structures. The only casualty is that we can not add a new VOP_ method with a loadable module. History has not given us reason to belive this would ever be feasible in the the first place. Eliminate in toto VOCALL(), vop_t, VNODEOP_SET() etc. Give coda correct prototypes and function definitions for all vop_()s. Generate a bit more data from the vnode_if.src file: a struct vop_vector and protype typedefs for all vop methods. Add a new vop_bypass() and make vop_default be a pointer to another struct vop_vector. Remove a lot of vfs_init since vop_vector is ready to use from the compiler. Cast various vop_mumble() to void * with uppercase name, for instance VOP_PANIC, VOP_NULL etc. Implement VCALL() by making vdesc_offset the offsetof() the relevant function pointer in vop_vector. This is disgusting but since the code is generated by a script comparatively safe. The alternative for nullfs etc. would be much worse. Fix up all vnode method vectors to remove casts so they become typesafe. (The bulk of this is generated by scripts)
* emit a "typedef vop_foo_t(struct vop_foo_args *);" which we can usephk2004-12-011-0/+1
| | | | to prototype VOP functions with.
* Pass doxygen doc comments through to the output.dfr2004-07-111-8/+33
|
* Complete quirk handling script by matching the in-kernel table format.njl2004-06-301-16/+11
| | | | | Use a union to properly assign values. Collapse some unnecessary variables in the revision rules.
* Add a script to parse acpi_quirks into a header file that we can compilenjl2004-06-241-0/+191
| | | | | | into ACPI. Script written by Mark Santcroos with some edits from myself. Submitted by: marks
* devlist2h.awk is too generic a name for what it does. It reallyimp2004-05-261-147/+0
| | | | | | | | converts miidevs to a .h file, so rename to reflect that. The usb and pccard versions have also been renamed and will be hooked into the build system shortly (I've made the conversion in my p4 tree).
* Correct $FreeBSD$ style.obrien2004-04-161-2/+2
|
* Remove advertising clause from University of California Regent's license,imp2004-04-072-8/+0
| | | | | | per letter dated July 22, 1999. Approved by: core
* Attempt to clean up the emu10k1-alsa.h stuff so that config doesn'tpeter2004-02-051-0/+21
| | | | | | delete it each time its run and have it regenerated each time by make. I used a quick hackish script rather than putting it in the files file and used the before-depend rule to avoid the depend/no-depend hacks.
* Changes for new SMP-safe kobj method dispatch algorithm.dfr2003-10-161-2/+6
|
* Don't check the state of the vnode interlock if the specification saystruckman2003-06-221-1/+7
| | | | | | | that the lock should not be checked. Skip the lock assertion checks for *vpp or any other pointer to a vnode pointer if vpp (or equivalent) is NULL.
* The assertions generated to test VFS locking never included checksse2003-06-201-0/+2
| | | | | | | | | | | | | | | | for vnodes reached through double indirection (i.e. **vpp). This is worked-around by special-casing the identifier "vpp" (adding one level of indirection). The alternative fix mentioned in the PR had required substantial changes to this script. In case there are locking violations that had been hidden without this patch, they may suddenly show up, now ... This change does not affect code compiled without DEBUG_VFS_LOCKS. PR: kern/46652
* MFp4:imp2003-03-281-53/+5
| | | | | Don't generate the data file. Use 0xffffffff rather than -1 for sign safety as these fields are uint32_t.
* Remove miidevs.h and generate it from miidevs at compile time.obrien2003-01-192-2/+2
| | | | The devlist2h.awk tool to do this has been repocopied to sys/tools/.
* - Move ASSERT_VOP_*LOCK* functionality into functions in vfs_subr.cjeff2002-09-261-1/+1
| | | | | | | - Make the VI asserts more orthogonal to the rest of the asserts by using a new, common vfs_badlock() function and adding a 'str' arg. - Adjust generated ASSERTS to match the new prototype. - Adjust explicit ASSERTS to match the new prototype.
* - Automatically generate and insert KTR points in all VOPs.jeff2002-09-231-0/+24
|
* - Add two new debugging macros: ASSERT_VI_LOCKED and ASSERT_VI_UNLOCKEDjeff2002-08-211-0/+1
| | | | | | | | - Use the new VI asserts in place of the old mtx_assert checks. - Add the VI asserts to the automated lock checking in the VOP calls. The interlock should not be held across vops with a few exceptions. - Add the vop_(un)lock_{pre,post} functions to assert that interlock is held when LK_INTERLOCK is set.
* Use mv -f. Otherwise if you accidently build as root, and then as a user,obrien2002-08-201-2/+2
| | | | | | it keeps asking you if you want to overwrite it or not. Submitted by: peter
* - Add automatic post vop debug checks. These work in both the success andjeff2002-07-301-5/+14
| | | | failure cases.
* - Use 'options DEBUG_VFS_LOCKS' instead of the DEBUG_ALL_VFS_LOCKSjeff2002-07-071-5/+7
| | | | environment variable to enable the lock verifiction code.
* Add a new configuration directive that inserts calls to debugging functionsjeff2002-07-061-1/+28
| | | | | | | | | | | | | | | | in the VOP inlines. This is intended to replace the simple locking specifications for calls that have more complicated behavior such as rename and lookup. The syntax of the new entries is: #! name pre/post function If the function is marked 'pre' it is executed prior to calling the VOP and takes a pointer to a struct vop_{name}_args as it's only parameter. If the function is marked 'post' it is executed after the VOP call and takes a pointer to a struct vop_{name}_args as it's first parameter and the integer return value from the vop as the second paramter.
* include systm.h in vnode_if.c so that panic is defined when we're doingjeff2002-05-041-0/+1
| | | | DEBUG_ALL_VFS_LOCKS.
* Awk version of makeobjops.PL.obrien2002-05-011-0/+485
| | | | | | | Note the invocation ordering is slightly different: awk -f makeobjops.awk foo.m -ch Submitted by: Oliver Fromme <olli@fromme.com>
* constifyjoe2002-04-011-2/+2
|
* Return vnode_if back to its AWK roots.obrien2002-03-011-289/+233
| | | | | It became a Perl script in rev 1.20. This removes one more dependence on perl for the kernel build.
* Throw the $FreeBSD$s back in, properly escaping them.silby2002-01-041-4/+4
|
* Remove $FreeBSD$s from previous commit; perl thinks that they'resilby2002-01-041-2/+2
| | | | something to be interpreted. Urk.
* Solve vnode_if.pl's identity crisis; make sure that it refers to itselfsilby2002-01-031-4/+4
| | | | | | | as vnode_if.pl instead of vnode_if.sh. PR: 33509 MFC after: 3 weeks
* Move from using PCCARD_ symbols gereated from this file to using PCMCIA_imp2001-11-111-10/+10
| | | | symbols so that driver lists are easier to share and keep in sync.
* KSE Milestone 2julian2001-09-121-2/+2
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* replace calls to non-existant bail() subroutine with calls toalfred2001-03-231-2/+2
| | | | the die() builtin function.
* Simplify this a bit so that it doesn't have to generate silly redundantpeter2000-12-061-14/+3
| | | | | | __P() prototypes when an ansi-style static inline is a prototype already. Since vnode_if.[ch] are generated on the fly, there are no CVS diffs to mess up.
* remove crufty exec stuff, perl is in the base systemalfred2000-06-271-27/+39
| | | | | | | | make it work with warnings on (there was some harmless use of uninitialized variables) make it work with 'use strict' Approved by: peter
* Use a seperate -c and -h mode. The vnode_if.c file is compiled only intopeter1999-12-121-120/+147
| | | | | | | | | the kernel while the vnode_if.h header is a bunch of inlines to call the code that is in the kernel. Generating the .h file on the fly is kinda bogus because it has to match the one compiled into the kernel. IMHO we should have kern/vnode_if.c and sys/vnode_if.h committed in the tree but that's another battle.
* Add usbdevs and friends.n_hibma1999-11-181-0/+236
|
* Moderately hacked pccard code from newconfig. It is somewhat inimp1999-10-261-0/+226
| | | | | | | | | | | | | incomplete and likely has problem. The code was originally pcmcia, but I renamed it to pccard and made it compile on FreeBSD -current. I converted SIMPLEQ to STAILQ as well as a few sc->dev.xname -> device_printf changes. This is a green port of fairly mature code. I derived this work from the FreeBSD newconfig project (http://www.jp.freebsd.org/newconfig). Any problems with it are likely introduced by me. Obtained from: newconfig project
* Update this to be able to output ASSERT_VOP_(UN)LOCKED() based on theeivind1999-09-261-255/+230
| | | | | | | | | | | | | | lock specifications in kern/vnode_if.src. At present, this do not distinguish between exclusive and shared locks, and the kernel is so full of bugs in this area that running with auto-generation of assertions enabled makes DEBUG_VFS_LOCKS totally useless for anybody that has used it for anything prior to outputting automated assertions. Due to this, I made vnode_if.sh only output locking assertions if you have the environment variable DEBUG_ALL_VFS_LOCKS set to "YES". In order to actually use the assertions, you need to also add "options DEBUG_VFS_LOCKS" to your kernel config file. Urged to commit by: phk
* $Id$ -> $FreeBSD$ (some mangled and/or hidden ones)peter1999-08-282-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* This commit adds support for the NetBSD MII abstraction layer andwpaul1999-08-212-0/+294
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MII-compliant PHY drivers. Many 10/100 ethernet NICs available today either use an MII transceiver or have built-in transceivers that can be programmed using an MII interface. It makes sense then to separate this support out into common code instead of duplicating it in all of the NIC drivers. The mii code also handles all of the media detection, selection and reporting via the ifmedia interface. This is basically the same code from NetBSD's /sys/dev/mii, except it's been adapted to FreeBSD's bus architecture. The advantage to this is that it automatically allows everything to be turned into a loadable module. There are some common functions for use in drivers once an miibus has been attached (mii_mediachg(), mii_pollstat(), mii_tick()) as well as individual PHY drivers. There is also a generic driver for all PHYs that aren't handled by a specific driver. It's possible to do this because all 10/100 PHYs implement the same general register set in addition to their vendor-specific register sets, so for the most part you can use one driver for pretty much any PHY. There are a couple of oddball exceptions though, hence the need to have specific drivers. There are two layers: the generic "miibus" layer and the PHY driver layer. The drivers are child devices of "miibus" and the "miibus" is a child of a given NIC driver. The "miibus" code and the PHY drivers can actually be compiled and kldoaded as completely separate modules or compiled together into one module. For the moment I'm using the latter approach since the code is relatively small. Currently there are only three PHY drivers here: the generic driver, the built-in 3Com XL driver and the NS DP83840 driver. I'll be adding others later as I convert various NIC drivers to use this code. I realize that I'm cvs adding this stuff instead of importing it onto a separate vendor branch, but in my opinion the import approach doesn't really offer any significant advantage: I'm going to be maintaining this stuff and writing my own PHY drivers one way or the other.
* Add a vnode argument to VOP_BWRITE to get rid of the last vnodemckusick1999-06-161-46/+1
| | | | | operator special case. Delete special case code from vnode_if.sh, vnode_if.src, umap_vnops.c, and null_vnops.c.
* Declare static __inline functions as __inline in their forwardbde1999-02-281-13/+8
| | | | | | | | declaration. Fixed some comments. Fixed a staticization botch.
* Make the vnode opv vector construction fully dynamic. Previously wepeter1998-11-101-38/+2
| | | | | | | | | | | | | | | | | | | | leaked memory on each unload and were limited to items referenced in the kernel copy of vnode_if.c. Now a kernel module is free to create it's own VOP_FOO() routines and the rest of the system will happily deal with it, including passthrough layers like union/umap/etc. Have VFS_SET() call a common vfs_modevent() handler rather than inline duplicating the common code all over the place. Have VNODEOP_SET() have the vnodeops removed at unload time (assuming a module) so that the vop_t ** vector is reclaimed. Slightly adjust the vop_t ** vectors so that calling slot 0 is a panic rather than a page fault. This could happen if VOP_something() was called without *any* handlers being present anywhere (including in vfs_default.c). slot 1 becomes the default vector for the vnodeop table. TODO: reclaim zones on unload (eg: nfs code)
* VOP_STRATEGY grows an (struct vnode *) argumentjulian1998-07-041-31/+1
| | | | | | as the value in b_vp is often not really what you want. (and needs to be frobbed). more cleanups will follow this. Reviewed by: Bruce Evans <bde@freebsd.org>
* Use __inline instead of inline to prevent pedantic compiler warnings.bde1997-12-191-4/+4
|
OpenPOWER on IntegriCloud