ad
59d979c5f1
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
...
the pool's lock.
2007-03-12 18:18:22 +00:00
yamt
95ef0a2720
fix a fallout from caddr_t changes.
2007-03-04 14:33:57 +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
thorpej
4f3d5a9cc0
TRUE -> true, FALSE -> false
2007-02-22 06:34:42 +00:00
thorpej
712239e366
Replace the Mach-derived boolean_t type with the C99 bool type. A
...
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
yamt
1a7bc55dcc
remove some __unused from function parameters.
2006-11-01 10:17:58 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
dogcow
55ddfc9aae
change the MOWNER_INIT define to take two args; fix extant struct mowner
...
decls to use it. Makes options MBUFTRACE compile again and not whinge about
missing structure declarations. (Also makes initialization consistent.)
2006-10-10 21:49:14 +00:00
christos
842f306745
use c99 initializers
2006-09-03 21:12:14 +00:00
pavel
fd456db2e7
MCLAIM the correct mbuf. PR kern/34162.
2006-08-08 15:53:40 +00:00
yamt
c24f70bcad
move wait points for kva from upper layers to vm_map. PR/33185 #1 .
...
XXX there is a concern about interaction with kva fragmentation.
see: http://mail-index.NetBSD.org/tech-kern/2006/05/11/0000.html
2006-05-25 14:27:28 +00:00
christos
cb70a32776
Coverity CID 848: Protect against NULL deref.
2006-04-15 04:58:14 +00:00
yamt
bd149b4812
m_copyback0:
...
- unify two copies of code to extend a chain.
- when extending a chain,
- use trailing space of the last mbuf if any.
- use mbuf cluster if appropriate.
2006-03-19 10:07:19 +00:00
yamt
3aa5cee09f
m_print: fix the previous correctly.
2006-03-18 18:17:19 +00:00
chris
3b6dcb2526
Fix Coverity CID 1473: Static buffer overrun.
...
Add a counter for the number of pages, so that we print out the ext_pgs
values.
2006-03-18 17:37:17 +00:00
yamt
2ff5a7c85c
m_copyback0: add comments and assertions.
2006-03-15 10:40:30 +00:00
yamt
e8a3b3eb83
add ddb "sh mbuf" command.
2006-01-24 13:02:57 +00:00
perry
144515ce1a
u_intN_t -> uintN_t
2005-12-26 18:41:36 +00:00
thorpej
b99f870719
Sprinkle static.
2005-12-08 03:11:14 +00:00
skrll
261d102fbb
Typo in comment.
2005-11-09 17:54:12 +00:00
yamt
2e85eff671
- introduce M_MOVE_PKTHDR and use it where appropriate.
...
intended to be mostly API compatible with openbsd/freebsd.
- remove a glue #define in netipsec/ipsec_osdep.h.
2005-08-18 00:30:58 +00:00
martin
71d020f371
Since we decided "const struct mbuf *" would not do the right thing (tm),
...
remove ~all const from mbuf pointers.
2005-06-06 06:06:50 +00:00
martin
36c7f61f8f
Constify the source arg of m_copydata
2005-06-06 04:50:28 +00:00
explorer
48c9742722
restore NetBSD RCS tag in __KERNEL_RCSID() macro
2005-06-02 15:48:11 +00:00
tron
a40b37b948
Change first argument of m_copydata() back to "struct mbuf *" because
...
m_copydata() might eventually modify the "mbuf" structure to support
lazy mbuf mapping as pointed out by YAMAMOTO Takashi on "tech-net".
2005-06-02 15:19:28 +00:00
tron
c4f68c0d95
Add missing RCS id. Problem pointed out by Jukka Salmi.
2005-06-02 12:58:16 +00:00
tron
f0abca45e5
Fix bad botch invented in last change.
2005-06-02 12:42:10 +00:00
tron
c54394a240
Change the first argument of m_copydata() to "const struct mbuf *" (which
...
doesn't require any implementation changes). This will allow us to get
rid off a lot of nasty type casts.
2005-06-02 10:34:59 +00:00
yamt
6b2d8b66a4
merge yamt-km branch.
...
- don't use managed mappings/backing objects for wired memory allocations.
save some resources like pv_entry. also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
2005-04-01 11:59:21 +00:00
matt
027c11539b
Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them.
2005-01-24 21:25:09 +00:00
matt
d341be30f4
Change initialzie of domains to use link sets. Switch to using STAILQ.
...
Add a convenience macro DOMAIN_FOREACH to interate through the domain.
2005-01-23 18:41:56 +00:00
matt
2fefa174c9
Make panic messages print out what condition they though was panic-worthy
...
instead of a 1 word message.
2004-10-20 22:10:31 +00:00
is
b5016b1bb3
Some code likes to mix MT_HEADER and MT_DATA. Revert this assertion until
...
the usage of MT_HEADER vs. MT_DATA is better defined and implemented.
2004-10-05 12:19:29 +00:00
enami
23114636eb
Delete m_tag from a mbuf being non-pkthdr mbuf rather than newly becoming
...
pkthdr mbuf.
2004-09-17 23:24:03 +00:00
yamt
1304a56139
m_split: restore a behaviour on M_PKTHDR, which was unintentionaly
...
changed when i added m_copyback_cow.
2004-09-11 19:55:19 +00:00
yamt
7b09a1e089
m_copyback, m_copyback_cow, m_copydata:
...
- caddr_t -> void *
- constify.
partly from openbsd.
2004-09-08 12:00:28 +00:00
yamt
e2139bcdc8
add m_copyback_cow and m_makewritable.
2004-09-06 09:43:29 +00:00
yamt
7af0699fdd
m_copyback: add an assertion to detect write attempts to a read-only mbuf.
2004-07-21 12:06:46 +00:00
jonathan
5249b5a2a5
Rename MBUFTRACE helper function m_claim() to m_claimm(),
...
for consistency with M_FREE() and m_freem(). Affected files:
sys/mbuf.h
kern/uipc_socket2.c
kern/uipc_mbuf.c
net/if_ethersubr.c
netatalk/ddp_input.c
nfs/nfs_socket.c
2004-06-24 04:15:50 +00:00
atatat
5b22e79ada
Remaining sysctl descriptions under kern subtree
2004-05-25 04:30:32 +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
atatat
19af35fd0d
Tango on sysctl_createv() and flags. The flags have all been renamed,
...
and sysctl_createv() now uses more arguments.
2004-03-24 15:34:46 +00:00
junyoung
a222c81884
Nuke __P().
2004-03-23 13:22:03 +00:00
yamt
cd9b5b72f5
m_cat: assert mbuf types only when coalescing them by copying.
...
mbuf n often have 0-sized "headers" and their types don't matter much.
PR/24713 from Darrin B. Jewell.
2004-03-09 06:37:59 +00:00
itojun
efcd57f822
m_cat() - if it is safe, copy data portion into 1st mbuf even if 1st mbuf
...
is M_EXT mbuf.
2004-02-26 02:30:04 +00:00
atatat
4fe5b245f9
Fix the kern.mbuf tunables.
2004-01-21 02:11:20 +00:00
atatat
13f8d2ce5f
Dynamic sysctl.
...
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.
Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded. Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.
All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.
PS - I'm sorry, but there's a distinct lack of documentation at the
moment. I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
2003-12-04 19:38:21 +00:00
itojun
98d5598feb
when dropping M_PKTHDR, need to free m_tag associated with it.
2003-10-03 20:56:11 +00:00
yamt
02b67863b8
assert mbuf chains m_cat'ed are of the same type.
2003-09-07 12:04:13 +00:00
itojun
119a24cbdd
clarify comment on m_cat().
2003-09-04 04:10:32 +00:00