summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Pick up one file missed in the previous vprint() cleanupnjl2003-03-031-3/+3
|
* Finish cleanup of vprint() which was begun with changing v_tag to a string.njl2003-03-0321-63/+17
| | | | | | Remove extraneous uses of vop_null, instead defering to the default op. Rename vnode type "vfs" to the more descriptive "syncer". Fix formatting for various filesystems that use vop_print.
* Rearrange the members of struct cdevsw to be absolutely sure to catchphk2003-03-032-10/+6
| | | | any initializations which are not done right.
* Make nokqfilter() return the correct return value.phk2003-03-0327-29/+23
| | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers.
* Simplify ORB queue management.simokawa2003-03-031-26/+19
| | | | | Don't send doorbell and send ORB pointer only if it's necessary. This reduces bus traffic and interrupts much.
* Add a "-S sectorsize" option to enable Kirk to find a bug :-)phk2003-03-032-2/+9
|
* Don't initialize d_kqfilter to 0.phk2003-03-031-3/+1
|
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-03163-2179/+1217
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* Simplify ofw_pci_fixup(). It doesn't need to be recursive, since thegrehan2003-03-031-19/+3
| | | | | | bridge code already handles IRQ adjustment on the far side of a bridge. Reviewed by: benno
* Minor cleanup of the Promise code.sos2003-03-032-18/+22
|
* Always set the setmode funcptr.sos2003-03-033-1/+21
|
* Don't pick up a name from the dev_t if it is not there.phk2003-03-031-1/+7
|
* Leave the `clobber' target alone, it clobbers too much (includingru2003-03-031-3/+7
| | | | | | the generated Makefile) to be useful as the cleandir replacement. Reported by: des
* Clean up whitespace and remove register keyword.des2003-03-0311-98/+98
|
* More caddr_t removal, in conjunction with copy{in,out}(9) this time.des2003-03-0313-122/+102
| | | | Also clean up some egregious casts and incorrect use of sizeof.
* Revert last commit. File tracks NetBSD.mdodd2003-03-031-13/+13
| | | | Requested by: sam
* - Shift the tick count by 10 and back around sched_pctcpu_update()jeff2003-03-031-2/+8
| | | | | | | calculations. Keep this changes local to the function so the tick count is in its natural form otherwise. Previously 1000 was added each time a tick fired and we divided by 1000 when it was reported. This is done to reduce rounding errors.
* sizeof(struct llc) -> LLC_SNAPFRAMELENmdodd2003-03-037-31/+31
| | | | | sizeof(struct ether_header) -> ETHER_HDR_LEN sizeof(struct fddi_header) -> FDDI_HDR_LEN
* - In sched_add() special case PRI_TIMESHARE and PRI_ITHD|PRI_REALTIME. Wejeff2003-03-031-9/+22
| | | | | | always place ITHD & REALTIME threads on the current queue of the current cpu. Prior to this change an interrupt thread would only ever run on one cpu.
* - Refrain from setting the td_priority in sched_wakeup(). It will be resetjeff2003-03-031-6/+5
| | | | before we return to user space.
* Defer allowing async. requests after self ID's have received.simokawa2003-03-031-7/+6
| | | | | | | | | | This should fix some problem of SBP2 device probing. Prior to rev 1.41, we keep writing the register while bus reset phase. But in rev 1.41, we ignore successive bus reset events and some chips seem to clear the register after we write to it. Tested by: Michael Reifenberger <root@nihil.reifenberger.com>
* Use IFP2AC() rather than casting to struct arpcom *mdodd2003-03-031-2/+2
|
* De-register.mdodd2003-03-033-19/+19
|
* A cute yet small MAC policy that provides a simple ACL mechanism torwatson2003-03-026-0/+498
| | | | | | | | | | | | | | | | | | | | | | | | permit users and groups to bind ports for TCP or UDP, and is intended to be combined with the recently committed support for net.inet.ip.portrange.reservedhigh. The policy is twiddled using sysctl(8). To use this module, you will need to compile in MAC support, and probably set reservedhigh to 0, then twiddle security.mac.portacl.rules to set things as desired. This policy module only restricts ports explicitly bound using bind(), not implicitly bound ports where the port number is selected by the IP stack. It appears to work properly in my local configuration, but needs more broad testing. A sample policy might be: # sysctl security.mac.portacl.rules="uid:425:tcp:80,uid:425:tcp:79" This permits uid 425 to bind TCP sockets to ports 79 and 80. Currently no distinction is made for incoming vs. outgoing ports with TCP, although that would probably be easy to add. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Get rid of caddr_t.des2003-03-022-2/+2
|
* Reduce code duplication. This adds the function rt_check() to route.c.mdodd2003-03-027-116/+71
| | | | Approved by: sam (in principle)
* Abuse `cleandir' for what `clobber' was supposed to do, for peter.ru2003-03-021-1/+4
|
* Fixed sys/boot/pc98/boot2/Makefile to use kern.mk andru2003-03-021-1/+1
| | | | | | get rid of bsd.kern.mk completely. OK'ed by: bde
* Explicitly initialize all cdevsw methods with the relevant nofoo() functionphk2003-03-021-0/+11
| | | | if they are NULL.
* Spell noread() and nowrite() correctly (ie: not "NULL")phk2003-03-022-4/+4
|
* Don't use evil casts in cdevsw initialization.phk2003-03-021-5/+13
|
* Use canonical format for cdevsw initialization.phk2003-03-026-50/+79
|
* Use canonical format for cdevsw initilization.phk2003-03-021-13/+13
|
* Use canonical name for cdevsw initialization.phk2003-03-021-13/+13
|
* Use canonical form for cdevsw initialization.phk2003-03-021-13/+13
|
* Add two loader tuneables that allow one to change the maximum number ofharti2003-03-022-1/+13
| | | | | | | | | | | | | | | | | | queue items that can be allocated by netgraph and the number of free queue items that are cached on a private list. Netgraph places an upper limit on the number of queue items it may allocate. When there is a large number of netgraph messages travelling through the system (100k/sec and more) there is a high probability, that messages get queued at the nodes and netgraph runs out of queue items. In this case the data flow through netgraph gets blocked. The tuneable for the number of free items lets one trade memory for performance. The tunables are also available as read-only sysctls. PR: kern/47393 Reviewed by: julian Approved by: jake (mentor)
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).des2003-03-0266-226/+226
|
* Put cdevsw initialization on canonical format.phk2003-03-021-3/+14
|
* Fix cdevsw initialization commit to follow canonical format.phk2003-03-021-1/+1
|
* Clean up whitespace, s/register //, refrain from strong urge to ANSIfy.des2003-03-0216-354/+352
|
* uiomove-related caddr_t -> void * (just the low-hanging fruit)des2003-03-0217-35/+29
|
* Format the cdevsw like all other drivers do it for improved grepability.phk2003-03-021-4/+13
|
* Convert one of our main caddr_t consumers, uiomove(9), to void *.des2003-03-022-7/+7
|
* wakeup(9) and msleep(9) take void * arguments, not caddr_t.des2003-03-021-3/+3
|
* Clean up whitespace, unregisterize, ANSIfy, remove prototypes madedes2003-03-021-55/+19
| | | | superfluous by ANSIfication.
* NO_GEOM cleanup:phk2003-03-022-6/+4
| | | | Remove (actually: Obscurely rename) cdevsw->d_psize() to prevent future use.
* NO_GEOM cleanup:phk2003-03-021-8/+1
| | | | Remove cdevsw->d_size() implementation. No longer needed.
* NO_GEOM cleanup:phk2003-03-022-19/+1
| | | | Remove cdevsw->d_psize() implementation. It is no longer needed.
* NO_GEOM cleanup:phk2003-03-021-14/+1
| | | | Remove cdevsw->d_psize() implementation, we don't need it any more.
* NO_GEOM cleanup:phk2003-03-021-5/+12
| | | | | Use VOP_IOCTL(DIOCGMEDIASIZE) to check the size of a potential swap device instead of the cdevsw->d_psize() method.
OpenPOWER on IntegriCloud