pooka
a96791040e
remove unnecessary #ifdef
2010-05-11 20:21:56 +00:00
rmind
93deacb9f4
Remove mclpool_allocator, which is unnecessary since mb_map removal.
2010-04-16 02:57:15 +00:00
joerg
1476e7a45a
Handle rump like the direct mapping case.
2010-02-08 22:55:36 +00:00
joerg
d621e29eca
Remove separate mb_map. The nmbclusters is computed at boot time based
...
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.
The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
2010-02-08 19:02:25 +00:00
bouyer
f8059f7e67
m_split0(): If the newly allocated mbuf holds only the header,
...
don't forget to set m_len to 0. Otherwise whatever will compute the size
of this chain (including s_split() itself if called again on this chain)
will get it wrong, leading to various issues.
Bug exposed by the NFS server code with linux clients using TCP mounts.
2009-04-05 16:31:21 +00:00
cegger
b8817e4aed
ansify function definitions
2009-03-15 17:14:40 +00:00
christos
9a5d3f2817
replace bitmask_snprintf(9) with snprintb(3)
2008-12-16 22:35:21 +00:00
pooka
54b9426187
Move some sysctl node creations away from linksets and into the
...
constructors for subsystems.
XXX: CTLFLAG_PERMANENT is non-sensible.
2008-12-07 20:58:46 +00:00
matt
1906aa3e59
Switch from KASSERT to CTASSERT for those asserts testing sizes of types.
2008-07-02 14:47:34 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
thorpej
0cfa6e7487
Make the percpu API a little more friendly:
...
- percpu_getptr() is now called percpu_getref() and implicitly disables
preemption (via crit_enter()) when it is called.
- Added percpu_putref() which implicitly reenables preemption (via
crit_exit()).
2008-04-09 05:11:20 +00:00
yamt
9a4b7dd279
merge yamt-lazymbuf branch.
2008-03-24 12:24:37 +00:00
yamt
44dac61d31
make some mbuf related statistics per-cpu.
2008-01-17 14:49:28 +00:00
yamt
326b67ad4b
m_print: avoid sign extention of m_flags.
2007-11-14 14:11:57 +00:00
ad
d18c6ca4de
Merge from vmlocking:
...
- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.
2007-11-07 00:23:13 +00:00
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