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
elad
874fef3711
integrate kauth.
2006-05-14 21:19:33 +00:00
mrg
e294fdae0a
avoid a GCC uninitialised variable warning.
2006-05-12 01:25:44 +00:00
christos
98f00f5575
Add missing semi-colon.
2006-04-15 01:42:46 +00:00
christos
690a0f638c
Coverity CID 2431: Don't deref before test.
2006-04-14 23:47:57 +00:00
christos
57919c6b44
Coverity CID 1117: Prevent NULL deref.
2006-04-14 23:45:43 +00:00
christos
22c81cce82
Coverity CID 1116: Prevent NULL deref.
2006-04-14 23:43:07 +00:00
christos
9d14e1e4c9
Coverity CID 2692: First stop the timer and then free it.
2006-04-14 23:40:43 +00:00
christos
5a57baa413
don't use MALLOC with a non-constant size; use malloc instead.
2006-03-17 23:29:07 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
elad
9702e98730
Multiple inclusion protection, as suggested by christos@ on tech-kern@
...
few days ago.
2005-12-10 23:31:41 +00:00
kleink
705c504051
pk_accton(): `path' actually points into kernel space.
2005-10-06 16:32:14 +00:00
christos
9864c6e2cf
Sprinkle const.
2005-05-29 21:53:52 +00:00
perry
f07677dd81
nuke trailing whitespace
2005-02-26 22:45:09 +00:00
matt
4809be904e
Commit missing files with domain list sets.
2005-01-23 22:24:39 +00:00
skrll
f7155e40f6
There's no need to pass a proc value when using UIO_SYSSPACE with
...
vn_rdwr(9) and uiomove(9).
OK'd by Jason Thorpe
2004-09-17 14:11:20 +00:00
matt
e06794e93a
Remove #else of #if __STDC__
2004-04-26 01:41:15 +00:00
snj
8db2495eca
recommented -> recommended, indefinitly -> indefinitely.
2004-04-23 20:17:13 +00:00
matt
e50668c7fa
Constify protosw arrays. This can reduce the kernel .data section by
...
over 4K (if all the network protocols) are loaded.
2004-04-22 01:01:40 +00:00
itojun
d2f1c029b9
kill sprintf, use snprintf
2004-04-21 18:40:37 +00:00
matt
cc11991cd5
Use M_ZERO appropriately. Change some incorrect uses of M_DONTWAIT to
...
M_NOWAIT.
2004-04-18 19:11:39 +00:00
christos
90e1f431ca
adjust to the sbreserve prototype change.
2004-04-17 15:18:53 +00:00
jonathan
79bf8521a5
Change global head-of-local-IP-address list from in_ifaddr to
...
in_ifaddrhead. Recent changes in struct names caused a namespace
collision in fast-ipsec, which are most cleanly fixed by using
"in_ifaddrhead" as the listhead name.
2003-11-11 20:25:26 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
...
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
perry
1f4ad37fe3
"Utilize" has exactly the same meaning as "use," but it is more
...
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-05 00:02:24 +00:00
wiz
c6f1277bfa
synchronous, not syncronous.
2003-01-06 13:10:25 +00:00
wiz
617b132aac
Spell output with two ts.
2003-01-04 23:43:02 +00:00
lukem
0635de35a3
Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.
2002-11-26 23:30:07 +00:00
christos
15159edd96
s/si_addr/sdl_addr/
2002-11-26 19:05:29 +00:00
christos
3bdf8a1678
fix a couple of lint warnings.
2002-10-24 20:54:41 +00:00
thorpej
df2e531a81
Move netccitt config defns to netccitt/files.netccitt.
2002-10-10 22:17:59 +00:00
wiz
b1c7ac0e6d
"definitions" has lots of 'i's, but that's not reason to leave one out.
2002-09-29 23:23:56 +00:00
provos
0f09ed48a5
remove trailing \n in panic(). approved perry.
2002-09-27 15:35:29 +00:00
thorpej
2807c6789c
Rename SB_UPDATE_TAIL() to SB_EMPTY_FIXUP(), per suggestion from
...
Jonathan Stone.
2002-07-03 21:39:40 +00:00
thorpej
0585ce1489
Make insertion of data into socket buffers O(C):
...
* Keep pointers to the first and last mbufs of the last record in the
socket buffer.
* Use the sb_lastrecord pointer in the sbappend*() family of functions
to avoid traversing the packet chain to find the last record.
* Add a new sbappend_stream() function for stream protocols which
guarantee that there will never be more than one record in the
socket buffer. This function uses the sb_mbtail pointer to perform
the data insertion. Make TCP use sbappend_stream().
On a profiling run, this makes sbappend of a TCP transmission using
a 1M socket buffer go from 50% of the time to .02% of the time.
Thanks to Bill Sommerfeld and YAMAMOTO Takashi for their debugging
assistance!
2002-07-03 19:06:47 +00:00
matt
7ec7462c84
Remove/move a redundant extern.
2002-05-12 21:43:57 +00:00
matt
8dcbea3bed
Eliminate commons.
2002-05-12 21:30:35 +00:00
wiz
b4371d47f5
Replace some misuses of "then" with "than".
2001-12-04 17:56:30 +00:00
lukem
f85a625206
add RCSIDs
2001-11-13 00:12:56 +00:00
thorpej
e45efd967f
Deprecate the "m_act" alias of "m_nextpkt" (m_act is a historical
...
name), and just use m_nextpkt everywhere.
2001-10-18 20:17:24 +00:00
wiz
1e378c4c12
precede, not preceed.
2001-08-20 12:00:46 +00:00
jdolecek
934f52d4ff
Sprinkle couple of cosmetic changes - use 'extern' in headers, make
...
some stuff static, const as appropriate, use static TAILQ_HEAD_INITIALIZER()
instead TAILQ_INIT() call.
2001-06-19 07:37:16 +00:00
itojun
4d51fe368b
change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.
...
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific
interfaces only).
was: if_lastchange get updated on every packet transmission/receipt.
now: if_lastchange get updated when IFF_UP is changed.
2001-06-14 05:44:23 +00:00
mrg
c13e3a6693
use _KERNEL_OPT
2001-05-30 11:40:35 +00:00
lukem
e106596e85
remove superfluous ;
2001-05-01 16:39:00 +00:00
thorpej
bf2dcec4f5
Remove the use of splimp() from the NetBSD kernel. splnet()
...
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
thorpej
20fe4e2d96
Add a protosw flag, PR_ABRTACPTDIS (Abort on Accept of Disconnected
...
Socket), and add it to the protocols that use that behavior (all
PR_LISTEN protocols except for PF_LOCAL stream sockets).
2001-03-21 19:22:27 +00:00