martin
41198d5648
Make sure callouts are initialized before any access (including stopping
...
them)
2008-07-20 01:05:27 +00:00
he
a1991936ab
Also delete a now-unused local variable.
2008-05-23 14:10:50 +00:00
dyoung
dfe2dae171
Cosmetic: delete dead code.
2008-05-22 01:00:50 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
cegger
09275ba76d
use aprint_*_dev and device_xname
...
OK martin
2008-04-05 13:40:05 +00:00
veego
26aed7b552
Add missing ';' to fix a compile error, which was introduced in the
...
previous revision.
2008-03-01 18:59:45 +00:00
rmind
c6186face4
Welcome to 4.99.55:
...
- Add a lot of missing selinit() and seldestroy() calls.
- Merge selwakeup() and selnotify() calls into a single selnotify().
- Add an additional 'events' argument to selnotify() call. It will
indicate which event (POLL_IN, POLL_OUT, etc) happen. If unknown,
zero may be used.
Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
2008-03-01 14:16:49 +00:00
dyoung
2ccede0a9c
Start patching up the kernel so that a network driver always has
...
the opportunity to handle an ioctl before generic ifioctl handling
occurs. This will ease extending the kernel and sharing of code
between drivers.
First steps: Make the signature of ifioctl_common() match struct
ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.
2008-02-07 01:21:52 +00:00
perry
9b2b412c19
__FUNCTION__ -> __func__
2007-12-15 00:39:14 +00:00
pooka
4e38160d4d
Do not "return 1" from kqfilter for errors. That value is passed
...
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
2007-12-05 17:19:46 +00:00
ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +00:00
martin
27701280d7
We count last activity in time_update nowadays, so use that to compare
...
idle timeouts as well.
2007-10-14 23:44:49 +00:00
ad
88ab7da936
Merge some of the less invasive changes from the vmlocking branch:
...
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
he
785202d938
Adapt to const-ification of the *dst arg of if_output() functions.
2007-02-20 07:43:28 +00:00
hubertf
142c2a33ba
Remove duplicate #includes, patch contributed in private mail
...
by Slava Semushin <slava.semushin@gmail.com>.
To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".
Thanks to martin@ for the input on testing.
2007-01-24 13:08:11 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
elad
a498da2060
Kill KAUTH_GENERIC_ISSUSER.
2006-10-25 23:44:42 +00:00
pooka
46e45ee2d4
replace static for ncapi - it doesn't need exporting - nuke it from the header
2006-10-16 13:03:03 +00:00
pooka
97cdceacd6
* __unused madness
...
* insert missing initializers
* fix one (1!) bug because of if(); (although I wonder if
the fix is actually of any use ...)
2006-10-16 12:23:00 +00:00
ad
f474dceb13
Use the LWP cached credentials where sane.
2006-07-23 22:06:03 +00:00
kardel
de4337ab21
merge FreeBSD timecounters from branch simonb-timecounters
...
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-06-07 22:33:33 +00:00
christos
2a606d89a3
remove static decl.
2006-06-03 15:35:29 +00:00
elad
874fef3711
integrate kauth.
2006-05-14 21:19:33 +00:00
lukem
a1f606d3fd
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
...
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
perry
fbae48b901
Change "inline" back to "__inline" in .h files -- C99 is still too
...
new, and some apps compile things in C89 mode. C89 keywords stay.
As per core@.
2006-02-16 20:17:12 +00:00
perry
0f0296d88a
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
2005-12-24 20:45:08 +00:00
jmc
058eb3d205
Remove shadow variable caused by lwp fixes
2005-12-17 05:37:17 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
elad
adf9419c9a
Multiple inclusion protection, as suggested by christos@ on tech-kern@
...
few days ago.
2005-12-10 23:44:08 +00:00
jmc
168d2d9f35
Rename a shadowed variable
2005-06-13 20:34:16 +00:00
drochner
b10340ac93
quell cast-qual and shadow warnings
2005-06-01 18:07:04 +00:00
perry
bcfcddbac1
nuke trailing whitespace
2005-02-26 22:31:44 +00:00
martin
028c339458
If we don't have a source telephone number configured, do not send
...
a IEI_CALLINGPN information element.
2004-05-06 21:11:04 +00:00
itojun
d2f1c029b9
kill sprintf, use snprintf
2004-04-21 18:40:37 +00:00
matt
29fd5f0232
Use M_ZERO as appropriate. Use M_WAITOK instead of 0.
2004-04-18 19:21:06 +00:00
pooka
e9a93a44e9
Pass the number of B channels down in the info ioctl.
2004-03-28 14:27:26 +00:00
martin
acbc97c970
Avoid NULL pointer dereferences on incomplete setup by userland.
...
Fixes PR kern/24807.
2004-03-21 16:29:40 +00:00
wiz
e365329be5
Spell length with h after t. Inspired by a commit by brad@openbsd.
2004-02-13 18:02:05 +00:00
keihan
b8702f530b
netbsd.org -> NetBSD.org
...
This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean". Thanks for the patiance, and sorry for all the commits.
2003-12-04 13:57:30 +00:00
pooka
aaff23d58d
Calculate controller number based on the controller number stored in
...
the soft context instead of hardcoding it to "1". Now we have a better
chance of working with multiple controllers.
2003-10-28 17:02:54 +00:00
pooka
a1dd1bf617
g/c unused var bch from a few places
2003-10-03 16:47:57 +00:00
pooka
2491e652ce
When processing a connect indication, seek out the appropriate
...
l3drv and add that information to the call descriptor. This causes
us to not crash when receiving calls.
2003-10-03 16:46:32 +00:00
pooka
dae7af8b24
Ready the kernel side of i4b for primary rate interface support by
...
removing assumptions that there are only two B channels and by
adding support for a varying number of channels.
Due to this, rename previously used isdn identified "bri" to "isdnif",
which better describes the current situation.
2003-10-03 16:38:44 +00:00
martin
6b0c555300
On physical layer errors, mark deactivated call descriptors correctly.
...
Spotted by Antti Kantee.
2003-09-26 22:20:12 +00:00
pooka
3a930307fc
When releasing all cd's associated with a controller, don't stop
...
after finding one.
2003-09-26 21:05:33 +00:00
pooka
b6d1da0696
RCSID
2003-09-26 15:17:23 +00:00
pooka
4952ffa71e
Give iavc a bit in the debug bitmask society.
2003-09-25 15:54:41 +00:00
pooka
6a7a858eb2
Add a support layer for the ISDN CAPI ( http://www.capi.org/ ), which should
...
make it pretty simple to write drivers for cards which conform to CAPI.
This code was originally written by Juha-Matti Liukkonen <jml@cubical.fi>
of Cubical Solutions Ltd. for FreeBSD, and was now adapted to NetBSD
by myself for the same company.
2003-09-25 15:34:38 +00:00
pooka
0553a30d48
Make the number of maximum b-channels provided by a controller a macro
...
and base the calculation of the amount of call descriptors on that.
Define MAX_BCHAN as 2 for now, since we don't support primary rate (yet).
2003-09-25 15:16:08 +00:00