Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.149 / (download) - annotate - [select for diffs], Wed May 8 11:08:45 2013 UTC (2 weeks, 3 days ago) by pooka
Branch: MAIN
CVS Tags: HEAD
Changes since 1.148: +3 -3
lines
Diff to previous 1.148 (colored)
print more diagnostic info in panic message
Revision 1.148 / (download) - annotate - [select for diffs], Sat Jan 19 00:51:52 2013 UTC (4 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
tls-maxphys-nbase,
tls-maxphys-base,
khorben-n900,
agc-symver-base,
agc-symver
Changes since 1.147: +45 -31
lines
Diff to previous 1.147 (colored)
Add m_ensure_contig() routine, which is equivalent to m_pullup, but does not destroy the mbuf chain on failure (it is kept valid).
Revision 1.147 / (download) - annotate - [select for diffs], Thu Oct 18 19:33:38 2012 UTC (7 months ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base7,
yamt-pagecache-base6
Changes since 1.146: +3 -3
lines
Diff to previous 1.146 (colored)
bring comment up to reality kmem_map => kmem_arena
Revision 1.146 / (download) - annotate - [select for diffs], Sun Apr 29 16:36:53 2012 UTC (12 months, 3 weeks ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.145: +2 -3
lines
Diff to previous 1.145 (colored)
Remove the unused 'struct malloc_type' args to kern_malloc/realloc/free The M_xxx arg is left on the calls to malloc() and free(), maybe they could be converted to an enumeration and just saved in the malloc header (for deep diag use). Remove the malloc_type from mbuf extension. Fixes rump build as well. Welcome to 6.99.6
Revision 1.145 / (download) - annotate - [select for diffs], Fri Feb 10 17:35:47 2012 UTC (15 months, 1 week ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base4,
netbsd-6-base,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.144: +3 -3
lines
Diff to previous 1.144 (colored)
proper sizing of kmem_arena on different ports PR port-i386/45946: Kernel locks up in VMEM system
Revision 1.144 / (download) - annotate - [select for diffs], Fri Jan 27 19:48:40 2012 UTC (15 months, 3 weeks ago) by para
Branch: MAIN
Changes since 1.143: +3 -3
lines
Diff to previous 1.143 (colored)
extending vmem(9) to be able to allocated resources for it's own needs. simplifying uvm_map handling (no special kernel entries anymore no relocking) make malloc(9) a thin wrapper around kmem(9) (with private interface for interrupt safety reasons) releng@ acknowledged
Revision 1.143 / (download) - annotate - [select for diffs], Wed Aug 31 18:31:02 2011 UTC (20 months, 3 weeks ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
jmcneill-usbmp
Changes since 1.142: +4 -4
lines
Diff to previous 1.142 (colored)
NULL does not need a cast
Revision 1.142 / (download) - annotate - [select for diffs], Mon Aug 8 19:10:33 2011 UTC (21 months, 2 weeks ago) by dyoung
Branch: MAIN
Changes since 1.141: +60 -2
lines
Diff to previous 1.141 (colored)
Miscellaneous mbuf changes: 1 Add some protection against double-freeing mbufs in DIAGNOSTIC kernels. 2 Add a m_defrag() that's derived from sys/dev/pci/if_vge.c:vge_m_defrag(). This one copies the packet header. 3 Constify m_tag_find().
Revision 1.141 / (download) - annotate - [select for diffs], Wed Jul 27 14:35:34 2011 UTC (21 months, 4 weeks ago) by uebayasi
Branch: MAIN
Changes since 1.140: +2 -4
lines
Diff to previous 1.140 (colored)
These don't need uvm/uvm_extern.h.
Revision 1.140 / (download) - annotate - [select for diffs], Sun Apr 24 18:46:23 2011 UTC (2 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Changes since 1.139: +2 -3
lines
Diff to previous 1.139 (colored)
- Replace few malloc(9) uses with kmem(9). - Rename buf_malloc() to buf_alloc(), fix comments. - Remove some unnecessary inclusions.
Revision 1.139 / (download) - annotate - [select for diffs], Mon Jan 17 07:13:32 2011 UTC (2 years, 4 months ago) by uebayasi
Branch: MAIN
CVS Tags: bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Changes since 1.138: +3 -3
lines
Diff to previous 1.138 (colored)
Include internal definitions (uvm/uvm.h) only where necessary.
Revision 1.138 / (download) - annotate - [select for diffs], Wed Nov 24 14:49:18 2010 UTC (2 years, 6 months ago) by cegger
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr
Changes since 1.137: +3 -3
lines
Diff to previous 1.137 (colored)
No need to print '0x' twice in the printing of the mbuf flags via 'show mbuf'
Revision 1.137 / (download) - annotate - [select for diffs], Thu Oct 28 14:21:50 2010 UTC (2 years, 6 months ago) by seanb
Branch: MAIN
CVS Tags: uebayasi-xip-base4
Changes since 1.136: +3 -16
lines
Diff to previous 1.136 (colored)
Always use m_split() in m_copyback() instead of its local, abridged, version. This closes a window where a new mbuf (n) can be inserted where n->m_next == n.
Revision 1.136 / (download) - annotate - [select for diffs], Tue May 11 20:21:56 2010 UTC (3 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base3,
uebayasi-xip-base2
Changes since 1.135: +3 -3
lines
Diff to previous 1.135 (colored)
remove unnecessary #ifdef
Revision 1.135 / (download) - annotate - [select for diffs], Fri Apr 16 02:57:15 2010 UTC (3 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.134: +4 -30
lines
Diff to previous 1.134 (colored)
Remove mclpool_allocator, which is unnecessary since mb_map removal.
Revision 1.134 / (download) - annotate - [select for diffs], Mon Feb 8 22:55:36 2010 UTC (3 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.133: +3 -3
lines
Diff to previous 1.133 (colored)
Handle rump like the direct mapping case.
Revision 1.133 / (download) - annotate - [select for diffs], Mon Feb 8 19:02:33 2010 UTC (3 years, 3 months ago) by joerg
Branch: MAIN
Changes since 1.132: +44 -13
lines
Diff to previous 1.132 (colored)
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.
Revision 1.132 / (download) - annotate - [select for diffs], Sun Apr 5 16:31:21 2009 UTC (4 years, 1 month ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
uebayasi-xip-base,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
matt-premerge-20091211,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base
Branch point for: uebayasi-xip
Changes since 1.131: +3 -2
lines
Diff to previous 1.131 (colored)
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.
Revision 1.131 / (download) - annotate - [select for diffs], Sun Mar 15 17:14:40 2009 UTC (4 years, 2 months ago) by cegger
Branch: MAIN
Changes since 1.130: +3 -3
lines
Diff to previous 1.130 (colored)
ansify function definitions
Revision 1.130 / (download) - annotate - [select for diffs], Tue Dec 16 22:35:37 2008 UTC (4 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2,
mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.129: +4 -5
lines
Diff to previous 1.129 (colored)
replace bitmask_snprintf(9) with snprintb(3)
Revision 1.129 / (download) - annotate - [select for diffs], Sun Dec 7 20:58:46 2008 UTC (4 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: haad-nbase2,
haad-dm-base2,
haad-dm-base
Changes since 1.128: +20 -12
lines
Diff to previous 1.128 (colored)
Move some sysctl node creations away from linksets and into the constructors for subsystems. XXX: CTLFLAG_PERMANENT is non-sensible.
Revision 1.128 / (download) - annotate - [select for diffs], Wed Jul 2 14:47:34 2008 UTC (4 years, 10 months ago) by matt
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base,
netbsd-5-base,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
matt-mips64-base2,
haad-dm-base1,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap,
netbsd-5,
haad-dm
Changes since 1.127: +6 -6
lines
Diff to previous 1.127 (colored)
Switch from KASSERT to CTASSERT for those asserts testing sizes of types.
Revision 1.127 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:05 2008 UTC (5 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
simonb-wapbl
Changes since 1.126: +2 -9
lines
Diff to previous 1.126 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.126 / (download) - annotate - [select for diffs], Wed Apr 9 05:11:20 2008 UTC (5 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Changes since 1.125: +12 -14
lines
Diff to previous 1.125 (colored)
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()).
Revision 1.125 / (download) - annotate - [select for diffs], Mon Mar 24 12:24:37 2008 UTC (5 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: ad-socklock-base1
Changes since 1.124: +83 -9
lines
Diff to previous 1.124 (colored)
merge yamt-lazymbuf branch.
Revision 1.124 / (download) - annotate - [select for diffs], Thu Jan 17 14:49:29 2008 UTC (5 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: mjf-devfs2
Changes since 1.123: +225 -10
lines
Diff to previous 1.123 (colored)
make some mbuf related statistics per-cpu.
Revision 1.123 / (download) - annotate - [select for diffs], Wed Nov 14 14:11:57 2007 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
matt-armv6-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-merge1,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: bouyer-xeni386
Changes since 1.122: +3 -3
lines
Diff to previous 1.122 (colored)
m_print: avoid sign extention of m_flags.
Revision 1.122 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:24 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.121: +24 -22
lines
Diff to previous 1.121 (colored)
Merge from vmlocking: - pool_cache changes. - Debugger/procfs locking fixes. - Other minor changes.
Revision 1.121 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:34 2007 UTC (6 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-idlelwp-base8,
vmlocking-base,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
mjf-ufs-trans,
matt-mips64-base,
matt-mips64,
jmcneill-base,
hpcarm-cleanup
Branch point for: mjf-devfs,
matt-armv6,
jmcneill-pm,
bouyer-xenamd64
Changes since 1.120: +5 -4
lines
Diff to previous 1.120 (colored)
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing the pool's lock.
Revision 1.120 / (download) - annotate - [select for diffs], Sun Mar 4 14:33:57 2007 UTC (6 years, 2 months ago) by yamt
Branch: MAIN
Branch point for: vmlocking
Changes since 1.119: +3 -4
lines
Diff to previous 1.119 (colored)
fix a fallout from caddr_t changes.
Revision 1.119 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:10 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.118: +18 -18
lines
Diff to previous 1.118 (colored)
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.118 / (download) - annotate - [select for diffs], Thu Feb 22 06:34:45 2007 UTC (6 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base,
ad-audiomp
Changes since 1.117: +5 -5
lines
Diff to previous 1.117 (colored)
TRUE -> true, FALSE -> false
Revision 1.117 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:05 2007 UTC (6 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.116: +4 -4
lines
Diff to previous 1.116 (colored)
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.
Revision 1.116 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:59 2006 UTC (6 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Branch point for: yamt-idlelwp
Changes since 1.115: +6 -6
lines
Diff to previous 1.115 (colored)
remove some __unused from function parameters.
Revision 1.115 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:19 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.114: +6 -6
lines
Diff to previous 1.114 (colored)
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
Revision 1.114 / (download) - annotate - [select for diffs], Tue Oct 10 21:49:14 2006 UTC (6 years, 7 months ago) by dogcow
Branch: MAIN
Changes since 1.113: +11 -11
lines
Diff to previous 1.113 (colored)
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.)
Revision 1.113 / (download) - annotate - [select for diffs], Sun Sep 3 21:12:14 2006 UTC (6 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Changes since 1.112: +4 -3
lines
Diff to previous 1.112 (colored)
use c99 initializers
Revision 1.112 / (download) - annotate - [select for diffs], Tue Aug 8 15:53:40 2006 UTC (6 years, 9 months ago) by pavel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8,
yamt-pdpolicy-base7
Changes since 1.111: +3 -3
lines
Diff to previous 1.111 (colored)
MCLAIM the correct mbuf. PR kern/34162.
Revision 1.111 / (download) - annotate - [select for diffs], Thu May 25 14:27:28 2006 UTC (7 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6,
simonb-timecounters-base,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.110: +3 -2
lines
Diff to previous 1.110 (colored)
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
Revision 1.110 / (download) - annotate - [select for diffs], Sat Apr 15 04:58:14 2006 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
elad-kernelauth-base
Branch point for: chap-midi
Changes since 1.109: +5 -4
lines
Diff to previous 1.109 (colored)
Coverity CID 848: Protect against NULL deref.
Revision 1.109 / (download) - annotate - [select for diffs], Sun Mar 19 10:07:19 2006 UTC (7 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3
Changes since 1.108: +43 -14
lines
Diff to previous 1.108 (colored)
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.
Revision 1.108 / (download) - annotate - [select for diffs], Sat Mar 18 18:17:19 2006 UTC (7 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.107: +8 -5
lines
Diff to previous 1.107 (colored)
m_print: fix the previous correctly.
Revision 1.107 / (download) - annotate - [select for diffs], Sat Mar 18 17:37:17 2006 UTC (7 years, 2 months ago) by chris
Branch: MAIN
Changes since 1.106: +5 -5
lines
Diff to previous 1.106 (colored)
Fix Coverity CID 1473: Static buffer overrun. Add a counter for the number of pages, so that we print out the ext_pgs values.
Revision 1.106 / (download) - annotate - [select for diffs], Wed Mar 15 10:40:30 2006 UTC (7 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: peter-altq-base
Branch point for: peter-altq
Changes since 1.105: +12 -3
lines
Diff to previous 1.105 (colored)
m_copyback0: add comments and assertions.
Revision 1.105 / (download) - annotate - [select for diffs], Tue Jan 24 13:02:58 2006 UTC (7 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base2,
yamt-pdpolicy-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
elad-kernelauth
Changes since 1.104: +63 -2
lines
Diff to previous 1.104 (colored)
add ddb "sh mbuf" command.
Revision 1.104 / (download) - annotate - [select for diffs], Mon Dec 26 18:45:27 2005 UTC (7 years, 4 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.103: +4 -4
lines
Diff to previous 1.103 (colored)
u_intN_t -> uintN_t
Revision 1.103 / (download) - annotate - [select for diffs], Thu Dec 8 03:11:14 2005 UTC (7 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.102: +8 -8
lines
Diff to previous 1.102 (colored)
Sprinkle static.
Revision 1.102 / (download) - annotate - [select for diffs], Wed Nov 9 17:54:12 2005 UTC (7 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead
Changes since 1.101: +3 -3
lines
Diff to previous 1.101 (colored)
Typo in comment.
Revision 1.101 / (download) - annotate - [select for diffs], Thu Aug 18 00:30:58 2005 UTC (7 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Changes since 1.100: +21 -13
lines
Diff to previous 1.100 (colored)
- 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.
Revision 1.100 / (download) - annotate - [select for diffs], Mon Jun 6 06:06:50 2005 UTC (7 years, 11 months ago) by martin
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.99: +3 -3
lines
Diff to previous 1.99 (colored)
Since we decided "const struct mbuf *" would not do the right thing (tm), remove ~all const from mbuf pointers.
Revision 1.99 / (download) - annotate - [select for diffs], Mon Jun 6 04:50:28 2005 UTC (7 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.98: +3 -3
lines
Diff to previous 1.98 (colored)
Constify the source arg of m_copydata
Revision 1.98 / (download) - annotate - [select for diffs], Thu Jun 2 15:48:11 2005 UTC (7 years, 11 months ago) by explorer
Branch: MAIN
Changes since 1.97: +2 -2
lines
Diff to previous 1.97 (colored)
restore NetBSD RCS tag in __KERNEL_RCSID() macro
Revision 1.97 / (download) - annotate - [select for diffs], Thu Jun 2 15:19:28 2005 UTC (7 years, 11 months ago) by tron
Branch: MAIN
Changes since 1.96: +2 -2
lines
Diff to previous 1.96 (colored)
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".
Revision 1.96 / (download) - annotate - [select for diffs], Thu Jun 2 12:58:16 2005 UTC (7 years, 11 months ago) by tron
Branch: MAIN
Changes since 1.95: +1 -1
lines
Diff to previous 1.95 (colored)
Add missing RCS id. Problem pointed out by Jukka Salmi.
Revision 1.95 / (download) - annotate - [select for diffs], Thu Jun 2 12:42:10 2005 UTC (7 years, 11 months ago) by tron
Branch: MAIN
Changes since 1.94: +1 -1
lines
Diff to previous 1.94 (colored)
Fix bad botch invented in last change.
Revision 1.94 / (download) - annotate - [select for diffs], Thu Jun 2 10:34:59 2005 UTC (7 years, 11 months ago) by tron
Branch: MAIN
Changes since 1.93: +7 -7
lines
Diff to previous 1.93 (colored)
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.
Revision 1.93 / (download) - annotate - [select for diffs], Fri Apr 1 11:59:37 2005 UTC (8 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.92: +2 -2
lines
Diff to previous 1.92 (colored)
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.
Revision 1.92 / (download) - annotate - [select for diffs], Mon Jan 24 21:25:09 2005 UTC (8 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
netbsd-3-base,
matt-timespec
Branch point for: yamt-km,
netbsd-3
Changes since 1.91: +2 -1
lines
Diff to previous 1.91 (colored)
Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them.
Revision 1.91 / (download) - annotate - [select for diffs], Sun Jan 23 18:41:56 2005 UTC (8 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.90: +3 -2
lines
Diff to previous 1.90 (colored)
Change initialzie of domains to use link sets. Switch to using STAILQ. Add a convenience macro DOMAIN_FOREACH to interate through the domain.
Revision 1.90 / (download) - annotate - [select for diffs], Wed Oct 20 22:10:31 2004 UTC (8 years, 7 months ago) by matt
Branch: MAIN
CVS Tags: kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: kent-audio2
Changes since 1.89: +6 -5
lines
Diff to previous 1.89 (colored)
Make panic messages print out what condition they though was panic-worthy instead of a 1 word message.
Revision 1.89 / (download) - annotate - [select for diffs], Tue Oct 5 12:19:29 2004 UTC (8 years, 7 months ago) by is
Branch: MAIN
Changes since 1.88: +0 -2
lines
Diff to previous 1.88 (colored)
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.
Revision 1.88 / (download) - annotate - [select for diffs], Fri Sep 17 23:24:03 2004 UTC (8 years, 8 months ago) by enami
Branch: MAIN
Changes since 1.87: +1 -1
lines
Diff to previous 1.87 (colored)
Delete m_tag from a mbuf being non-pkthdr mbuf rather than newly becoming pkthdr mbuf.
Revision 1.87 / (download) - annotate - [select for diffs], Sat Sep 11 19:55:19 2004 UTC (8 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.86: +1 -1
lines
Diff to previous 1.86 (colored)
m_split: restore a behaviour on M_PKTHDR, which was unintentionaly changed when i added m_copyback_cow.
Revision 1.86 / (download) - annotate - [select for diffs], Wed Sep 8 12:00:28 2004 UTC (8 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.85: +8 -5
lines
Diff to previous 1.85 (colored)
m_copyback, m_copyback_cow, m_copydata: - caddr_t -> void * - constify. partly from openbsd.
Revision 1.85 / (download) - annotate - [select for diffs], Mon Sep 6 09:43:30 2004 UTC (8 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.84: +221 -13
lines
Diff to previous 1.84 (colored)
add m_copyback_cow and m_makewritable.
Revision 1.84 / (download) - annotate - [select for diffs], Wed Jul 21 12:06:46 2004 UTC (8 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.83: +3 -2
lines
Diff to previous 1.83 (colored)
m_copyback: add an assertion to detect write attempts to a read-only mbuf.
Revision 1.83 / (download) - annotate - [select for diffs], Thu Jun 24 04:15:50 2004 UTC (8 years, 11 months ago) by jonathan
Branch: MAIN
Changes since 1.82: +6 -3
lines
Diff to previous 1.82 (colored)
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
Revision 1.82 / (download) - annotate - [select for diffs], Tue May 25 04:30:32 2004 UTC (9 years ago) by atatat
Branch: MAIN
Changes since 1.81: +18 -10
lines
Diff to previous 1.81 (colored)
Remaining sysctl descriptions under kern subtree
Revision 1.81 / (download) - annotate - [select for diffs], Thu Apr 22 01:01:40 2004 UTC (9 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.80: +3 -3
lines
Diff to previous 1.80 (colored)
Constify protosw arrays. This can reduce the kernel .data section by over 4K (if all the network protocols) are loaded.
Revision 1.80 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:53 2004 UTC (9 years, 2 months ago) by atatat
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.79: +22 -13
lines
Diff to previous 1.79 (colored)
Tango on sysctl_createv() and flags. The flags have all been renamed, and sysctl_createv() now uses more arguments.
Revision 1.79 / (download) - annotate - [select for diffs], Tue Mar 23 13:22:05 2004 UTC (9 years, 2 months ago) by junyoung
Branch: MAIN
Changes since 1.78: +3 -3
lines
Diff to previous 1.78 (colored)
Nuke __P().
Revision 1.78 / (download) - annotate - [select for diffs], Tue Mar 9 06:37:59 2004 UTC (9 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.77: +3 -4
lines
Diff to previous 1.77 (colored)
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.
Revision 1.77 / (download) - annotate - [select for diffs], Thu Feb 26 02:30:04 2004 UTC (9 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.76: +3 -4
lines
Diff to previous 1.76 (colored)
m_cat() - if it is safe, copy data portion into 1st mbuf even if 1st mbuf is M_EXT mbuf.
Revision 1.76 / (download) - annotate - [select for diffs], Wed Jan 21 02:11:20 2004 UTC (9 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.75: +6 -6
lines
Diff to previous 1.75 (colored)
Fix the kern.mbuf tunables.
Revision 1.75 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:24 2003 UTC (9 years, 5 months ago) by atatat
Branch: MAIN
Changes since 1.74: +120 -82
lines
Diff to previous 1.74 (colored)
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.
Revision 1.74 / (download) - annotate - [select for diffs], Fri Oct 3 20:56:11 2003 UTC (9 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.73: +5 -2
lines
Diff to previous 1.73 (colored)
when dropping M_PKTHDR, need to free m_tag associated with it.
Revision 1.73 / (download) - annotate - [select for diffs], Sun Sep 7 12:04:13 2003 UTC (9 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.72: +4 -2
lines
Diff to previous 1.72 (colored)
assert mbuf chains m_cat'ed are of the same type.
Revision 1.72 / (download) - annotate - [select for diffs], Thu Sep 4 04:10:32 2003 UTC (9 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.71: +5 -3
lines
Diff to previous 1.71 (colored)
clarify comment on m_cat().
Revision 1.71 / (download) - annotate - [select for diffs], Fri Aug 15 02:59:32 2003 UTC (9 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.70: +18 -13
lines
Diff to previous 1.70 (colored)
Return NULL instead of 0 for functions that return pointers. Sprinkle some KNF whitespace.
Revision 1.70 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:58 2003 UTC (9 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.69: +3 -7
lines
Diff to previous 1.69 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.69 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:06 2003 UTC (9 years, 11 months ago) by martin
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.68: +4 -2
lines
Diff to previous 1.68 (colored)
Make sure to include opt_foo.h if a defflag option FOO is used.
Revision 1.68 / (download) - annotate - [select for diffs], Tue May 27 09:03:46 2003 UTC (10 years ago) by simonb
Branch: MAIN
Changes since 1.67: +3 -3
lines
Diff to previous 1.67 (colored)
Fix tyop in a comment.
Revision 1.67 / (download) - annotate - [select for diffs], Fri Apr 18 01:24:20 2003 UTC (10 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.66: +3 -2
lines
Diff to previous 1.66 (colored)
Add a KASSERT to make sure that "sizeof(struct mbuf)" is MSIZE. Extra insurance for Steve Woodford's recent <sys/mbuf.h> patch.
Revision 1.66 / (download) - annotate - [select for diffs], Sat Apr 12 02:49:25 2003 UTC (10 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.65: +69 -2
lines
Diff to previous 1.65 (colored)
Add two new mbuf routines: * m_apply(), which applies a function to each mbuf in chain starting at a specified offset, for a specified length. * m_getptr(), which returns a pointer to the mbuf, as well as the offset into that mbuf, corresponding to an offset from the beginning of an mbuf chain. From OpenBSD, cleaned up slightly by me.
Revision 1.65 / (download) - annotate - [select for diffs], Wed Apr 9 18:38:03 2003 UTC (10 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.64: +23 -4
lines
Diff to previous 1.64 (colored)
* Use a pool_cache constructor to record the physical address of mbufs in the mbuf header. * Use the new cached paddr feature of the pool_cache API to record the physical address of mbuf clusters. (We cannot use a ctor for clusters, since clusters have no constructed form; they are merely buffers). Bus_dma back-ends may use the cached physical addresses to save having to extract the physical address from virtual. * Provide space in m_ext recording the vm_page *'s for an SOSEND_LOAN_CHUNK- sized non-cluster external buffer. Use this in the sosend_loan code to save having to extract the physical address from virtual and then look up the vm_page *'s. * Provide an indication that an external buffer is mapped read-only at the MMU. Set this flag for the external buffer in the sosend_loan case, since loaned pages are always mapped read-only. Bus_dma back-ends may use this information to save cache flushing, since a cache flush of a read-only mapping is redundant on some architectures (the cache would have already been flushed when making the mapping read-only). Part 2 in a series of simple patches contributed by Wasabi Systems to improve network performance.
Revision 1.64 / (download) - annotate - [select for diffs], Wed Feb 26 06:31:11 2003 UTC (10 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.63: +81 -3
lines
Diff to previous 1.63 (colored)
Add MBUFTRACE kernel option. Do a little mbuf rework while here. Change all uses of MGET*(*, M_WAIT, *) to m_get*(M_WAIT, *). These are not performance critical and making them call m_get saves considerable space. Add m_clget analogue of MCLGET and make corresponding change for M_WAIT uses. Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE. Begin to change netstat to use sysctl.
Revision 1.63 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:44 2003 UTC (10 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.62: +4 -2
lines
Diff to previous 1.62 (colored)
Add extensible malloc types, adapted from FreeBSD. This turns malloc types into a structure, a pointer to which is passed around, instead of an int constant. Allow the limit to be adjusted when the malloc type is defined, or with a function call, as suggested by Jonathan Stone.
Revision 1.62 / (download) - annotate - [select for diffs], Fri Jan 31 04:55:52 2003 UTC (10 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.61: +27 -73
lines
Diff to previous 1.61 (colored)
ANSI'ify.
Revision 1.61 / (download) - annotate - [select for diffs], Wed Sep 25 22:21:45 2002 UTC (10 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge,
nathanw_sa_base,
kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Changes since 1.60: +2 -3
lines
Diff to previous 1.60 (colored)
Don't include <sys/map.h>.
Revision 1.60 / (download) - annotate - [select for diffs], Sun Jun 30 22:40:32 2002 UTC (10 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.59: +52 -2
lines
Diff to previous 1.59 (colored)
Changes to allow the IPv4 and IPv6 layers to align headers themseves, as necessary: * Implement a new mbuf utility routine, m_copyup(), is is like m_pullup(), except that it always prepends and copies, rather than only doing so if the desired length is larger than m->m_len. m_copyup() also allows an offset into the destination mbuf, which allows space for packet headers, in the forwarding case. * Add *_HDR_ALIGNED_P() macros for IP, IPv6, ICMP, and IGMP. These macros expand to 1 if __NO_STRICT_ALIGNMENT is defined, so that architectures which do not have strict alignment constraints don't pay for the test or visit the new align-if-needed path. * Use the new macros to check if a header needs to be aligned, or to assert that it already is, as appropriate. Note: This code is still somewhat experimental. However, the new code path won't be visited if individual device drivers continue to guarantee that packets are delivered to layer 3 already properly aligned (which are rules that are already in use).
Revision 1.59 / (download) - annotate - [select for diffs], Sat Mar 9 01:46:33 2002 UTC (11 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: newlock-base,
newlock,
netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6,
eeh-devprop-base,
eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.58: +6 -45
lines
Diff to previous 1.58 (colored)
Make mbpool and mclpool use the new drain hook facaility. Adjust m_reclaim() to match the drain hook signature. This allows us to delete m_retry() and m_retryhdr(), as the pool allocator will now perform the reclaimation step for us. From art@openbsd.org.
Revision 1.58 / (download) - annotate - [select for diffs], Fri Mar 8 20:48:41 2002 UTC (11 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.57: +15 -13
lines
Diff to previous 1.57 (colored)
Pool deals fairly well with physical memory shortage, but it doesn't deal with shortages of the VM maps where the backing pages are mapped (usually kmem_map). Try to deal with this: * Group all information about the backend allocator for a pool in a separate structure. The pool references this structure, rather than the individual fields. * Change the pool_init() API accordingly, and adjust all callers. * Link all pools using the same backend allocator on a list. * The backend allocator is responsible for waiting for physical memory to become available, but will still fail if it cannot callocate KVA space for the pages. If this happens, carefully drain all pools using the same backend allocator, so that some KVA space can be freed. * Change pool_reclaim() to indicate if it actually succeeded in freeing some pages, and use that information to make draining easier and more efficient. * Get rid of PR_URGENT. There was only one use of it, and it could be dealt with by the caller. From art@openbsd.org.
Revision 1.57 / (download) - annotate - [select for diffs], Tue Feb 12 00:52:33 2002 UTC (11 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: ifpoll-base,
ifpoll
Changes since 1.56: +3 -3
lines
Diff to previous 1.56 (colored)
const char *mclpool_warnmsg -> const char mclpool_warnmsg[] Noted by Matt Thomas.
Revision 1.56 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:31 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.55: +4 -1
lines
Diff to previous 1.55 (colored)
add RCSIDs
Revision 1.55 / (download) - annotate - [select for diffs], Mon Oct 29 07:02:31 2001 UTC (11 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.54: +3 -2
lines
Diff to previous 1.54 (colored)
Don't need to include <uvm/uvm_extern.h> just to include <sys/sysctl.h> anymore.
Revision 1.54 / (download) - annotate - [select for diffs], Sat Sep 15 20:36:37 2001 UTC (11 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3,
thorpej-devvp-base2,
post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.53: +2 -3
lines
Diff to previous 1.53 (colored)
a whole bunch of changes to improve performance and robustness under load:
- remove special treatment of pager_map mappings in pmaps. this is
required now, since I've removed the globals that expose the address range.
pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
no longer any need to special-case it.
- eliminate struct uvm_vnode by moving its fields into struct vnode.
- rewrite the pageout path. the pager is now responsible for handling the
high-level requests instead of only getting control after a bunch of work
has already been done on its behalf. this will allow us to UBCify LFS,
which needs tighter control over its pages than other filesystems do.
writing a page to disk no longer requires making it read-only, which
allows us to write wired pages without causing all kinds of havoc.
- use a new PG_PAGEOUT flag to indicate that a page should be freed
on behalf of the pagedaemon when it's unlocked. this flag is very similar
to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
pageout fails due to eg. an indirect-block buffer being locked.
this allows us to remove the "version" field from struct vm_page,
and together with shrinking "loan_count" from 32 bits to 16,
struct vm_page is now 4 bytes smaller.
- no longer use PG_RELEASED for swap-backed pages. if the page is busy
because it's being paged out, we can't release the swap slot to be
reallocated until that write is complete, but unlike with vnodes we
don't keep a count of in-progress writes so there's no good way to
know when the write is done. instead, when we need to free a busy
swap-backed page, just sleep until we can get it busy ourselves.
- implement a fast-path for extending writes which allows us to avoid
zeroing new pages. this substantially reduces cpu usage.
- encapsulate the data used by the genfs code in a struct genfs_node,
which must be the first element of the filesystem-specific vnode data
for filesystems which use genfs_{get,put}pages().
- eliminate many of the UVM pagerops, since they aren't needed anymore
now that the pager "put" operation is a higher-level operation.
- enhance the genfs code to allow NFS to use the genfs_{get,put}pages
instead of a modified copy.
- clean up struct vnode by removing all the fields that used to be used by
the vfs_cluster.c code (which we don't use anymore with UBC).
- remove kmem_object and mb_object since they were useless.
instead of allocating pages to these objects, we now just allocate
pages with no object. such pages are mapped in the kernel until they
are freed, so we can use the mapping to find the page to free it.
this allows us to remove splvm() protection in several places.
The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.
Revision 1.53 / (download) - annotate - [select for diffs], Thu Jul 26 19:05:04 2001 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base,
pre-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.52: +8 -2
lines
Diff to previous 1.52 (colored)
Use pool_cache_*() for mbufs and clusters. While we don't use the ctor/dtor feature, it's still faster to allocate from the cache groups than it is from the pool (cache groups are analogous to "magazines" in the Solaris SLAB allocator).
Revision 1.52 / (download) - annotate - [select for diffs], Sun Jan 14 02:06:22 2001 UTC (12 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Branch point for: nathanw_sa,
kqueue
Changes since 1.51: +2 -2
lines
Diff to previous 1.51 (colored)
Change some low-hanging splimp() calls to splvm().
Revision 1.51 / (download) - annotate - [select for diffs], Tue Nov 14 20:05:28 2000 UTC (12 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.50: +1 -5
lines
Diff to previous 1.50 (colored)
make sure every m_aux will be freed. there are direct use of MFREE() from sys/kern. (we experienced no memory leak so far, but if we use m_aux for other purposes, we will need this change)
Revision 1.50 / (download) - annotate - [select for diffs], Fri Aug 18 16:19:22 2000 UTC (12 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.49: +17 -16
lines
Diff to previous 1.49 (colored)
repair m_dup(). specifically, now it is safe against non-MCLBYTES cluster mbuf. noone seem to be using this function at this moment.
Revision 1.49 / (download) - annotate - [select for diffs], Fri Aug 18 14:23:48 2000 UTC (12 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.48: +7 -1
lines
Diff to previous 1.48 (colored)
disable m_dup(), as it makes false assumption on cluster mbuf and unsafe (does not do the right thing).
Revision 1.48 / (download) - annotate - [select for diffs], Fri Aug 18 14:12:47 2000 UTC (12 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.47: +9 -1
lines
Diff to previous 1.47 (colored)
add a comment about false assumption made by m_dup()
Revision 1.47 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:44 2000 UTC (12 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.46: +1 -3
lines
Diff to previous 1.46 (colored)
remove include of <vm/vm.h>
Revision 1.46 / (download) - annotate - [select for diffs], Mon Jun 26 14:21:15 2000 UTC (12 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.45: +1 -2
lines
Diff to previous 1.45 (colored)
remove/move more mach vm header files: <vm/pglist.h> -> <uvm/uvm_pglist.h> <vm/vm_inherit.h> -> <uvm/uvm_inherit.h> <vm/vm_kern.h> -> into <uvm/uvm_extern.h> <vm/vm_object.h> -> nothing <vm/vm_pager.h> -> into <uvm/uvm_pager.h> also includes a bunch of <vm/vm_page.h> include removals (due to redudancy with <vm/vm.h>), and a scattering of other similar headers.
Revision 1.45 / (download) - annotate - [select for diffs], Wed Mar 1 12:49:28 2000 UTC (13 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base,
netbsd-1-5-ALPHA2,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.44: +5 -1
lines
Diff to previous 1.44 (colored)
introduce m->m_pkthdr.aux to hold random data which needs to be passed between protocol handlers. ipsec socket pointers, ipsec decryption/auth information, tunnel decapsulation information are in my mind - there can be several other usage. at this moment, we use this for ipsec socket pointer passing. this will avoid reuse of m->m_pkthdr.rcvif in ipsec code. due to the change, MHLEN will be decreased by sizeof(void *) - for example, for i386, MHLEN was 100 bytes, but is now 96 bytes. we may want to increase MSIZE from 128 to 256 for some of our architectures. take caution if you use it for keeping some data item for long period of time - use extra caution on M_PREPEND() or m_adj(), as they may result in loss of m->m_pkthdr.aux pointer (and mbuf leak). this will bump kernel version. (as discussed in tech-net, tested in kame tree)
Revision 1.44 / (download) - annotate - [select for diffs], Wed Oct 27 14:23:27 1999 UTC (13 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
fvdl-softdep-base,
comdex-fall-1999-base,
comdex-fall-1999,
chs-ubc2-newbase
Changes since 1.43: +30 -4
lines
Diff to previous 1.43 (colored)
add mbuf deep-copy fnudtion, m_dup(). NOTE: if you use m_dup(), your additional kernel code can become incompatible with 4.xBSD or other *BSD.
Revision 1.43 / (download) - annotate - [select for diffs], Thu Aug 5 02:24:29 1999 UTC (13 years, 9 months ago) by thorpej
Branch: MAIN
Branch point for: wrstuden-devbsize,
thorpej_scsipi,
fvdl-softdep
Changes since 1.42: +4 -4
lines
Diff to previous 1.42 (colored)
Add some more diagnostic information to the 3 different `panic("m_copym")'
calls.
Revision 1.42 / (download) - annotate - [select for diffs], Mon Apr 26 22:04:28 1999 UTC (14 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.41: +126 -12
lines
Diff to previous 1.41 (colored)
More improvements to mbuf and mbuf cluster allocation: - Initialize mbpool and mclpool with msize and mclbytes, respectively, so that those values may be patched and have an actual affect on the next system reboot. - Set low water marks on mbpool (default: 16) and mclpool (default: 8). This should be of great help for diskless systems, which need to allocate mbufs in order to clean dirty pages; the low water marks increase the chances of this being possible to do in memory starvation situations. - Add support for getting/setting some mbuf-related parameters via sysctl. * msize and mclsize (read-only) * nmbclusters (read-only unless the platform has direct-mapped pool pages, in which case the value can be increased). * mblowat and mcllowat (read/write)
Revision 1.41 / (download) - annotate - [select for diffs], Sun Apr 25 03:03:03 1999 UTC (14 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.40: +2 -2
lines
Diff to previous 1.40 (colored)
Use the nmbclusters variable and not the NMBCLUSTERS constant when setting the mclpool hardlimit.
Revision 1.40 / (download) - annotate - [select for diffs], Thu Apr 1 00:23:25 1999 UTC (14 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: chs-ubc2
Changes since 1.39: +2 -3
lines
Diff to previous 1.39 (colored)
mbinit() can now allocate memory. Update a comment accordingly.
Revision 1.39 / (download) - annotate - [select for diffs], Wed Mar 31 01:26:40 1999 UTC (14 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.38: +14 -25
lines
Diff to previous 1.38 (colored)
Set a hard limit (rather than an advisory high water mark for pages) of NMBCLUSTERS for the mbuf cluster pool. On platforms which use direct-mapped segments for pool pages (MIPS and Alpha), this makes NMBCLUSTERS actually meaningful (such ports don't even allocate mb_map, as it is not used to map mbuf cluster pages). Improve the message logged at a maximum rate of once per second. The new message: "WARNING: mclpool limit reached; increase NMBCLUSTERS". In the back-end pool page allocator, remove the message about mb_map being full. The message was not necessarily correct as the allocator may have been starved for pages, rather than for space in the map. Also, the hard limit on the mbuf cluster pool will be reached before the map fills (the last cluster will always fit into the map), so the message is redundant. Add a comment in mbinit() about considering setting low water marks on the mbuf and mbuf cluster pools.
Revision 1.38 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:26 1999 UTC (14 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.37: +1 -13
lines
Diff to previous 1.37 (colored)
completely remove Mach VM support. all that is left is the all the header files as UVM still uses (most of) these.
Revision 1.37 / (download) - annotate - [select for diffs], Tue Mar 23 02:51:27 1999 UTC (14 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +7 -1
lines
Diff to previous 1.36 (colored)
Set the high water mark on the mbuf cluster pool to NMBCLUSTERS.
Revision 1.36 / (download) - annotate - [select for diffs], Mon Mar 22 22:06:58 1999 UTC (14 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.35: +23 -4
lines
Diff to previous 1.35 (colored)
Put back the code to log `mb_map full' that was lost when mbuf clusters were converted to use the pool allocator.
Revision 1.35 / (download) - annotate - [select for diffs], Sat Jan 9 22:10:13 1999 UTC (14 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +1 -2
lines
Diff to previous 1.34 (colored)
Garbage-collect `mbutl'.
Revision 1.34 / (download) - annotate - [select for diffs], Sat Jan 9 21:54:07 1999 UTC (14 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +1 -2
lines
Diff to previous 1.33 (colored)
Garbage-collect `union mcluster' and `mclfree'.
Revision 1.33 / (download) - annotate - [select for diffs], Fri Dec 18 21:40:14 1998 UTC (14 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +6 -14
lines
Diff to previous 1.32 (colored)
Reverse the stopgap change made in revision 1.29: date: 1998/08/01 01:47:24; author: thorpej; state: Exp; lines: +18 -8 Don't call the protocol drain routines if how == M_NOWAIT, which typically means we're in interrupt context. Since we can be called from a network hardware interrupt, we could corrupt the protocol queues we try to drain them at that time. The problem has been addressed by letting the drain'able protocols use a locking scheme to prevent queue corruption.
Revision 1.32 / (download) - annotate - [select for diffs], Fri Aug 28 20:05:48 1998 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base,
chs-ubc-base,
chs-ubc
Branch point for: kenh-if-detach
Changes since 1.31: +5 -3
lines
Diff to previous 1.31 (colored)
Add a waitok boolean argument to the VM system's pool page allocator backend.
Revision 1.31 / (download) - annotate - [select for diffs], Thu Aug 13 19:15:33 1998 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +3 -3
lines
Diff to previous 1.30 (colored)
Oops, this got missed in the vm_offset_t -> vaddr_t change.
Revision 1.30 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:17 1998 UTC (14 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.29: +11 -11
lines
Diff to previous 1.29 (colored)
Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one. bcopy(x, y, z) -> memcpy(y, x, z) ovbcopy(x, y, z) -> memmove(y, x, z) bcmp(x, y, z) -> memcmp(x, y, z) bzero(x, y) -> memset(x, 0, y)
Revision 1.29 / (download) - annotate - [select for diffs], Sat Aug 1 01:47:24 1998 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +18 -8
lines
Diff to previous 1.28 (colored)
Don't call the protocol drain routines if how == M_NOWAIT, which typically means we're in interrupt context. Since we can be called from a network hardware interrupt, we could corrupt the protocol queues we try to drain them at that time.
Revision 1.28 / (download) - annotate - [select for diffs], Sat Aug 1 01:35:20 1998 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +37 -50
lines
Diff to previous 1.27 (colored)
Use the pool allocator for mbufs and mbufs clusters (two pools, one for each). Partially from pk@netbsd.org.
Revision 1.27 / (download) - annotate - [select for diffs], Fri May 22 17:47:21 1998 UTC (15 years ago) by matt
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.26: +45 -39
lines
Diff to previous 1.26 (colored)
Add an if_drain to the ifnet structure (call when the system is low on mbufs). Add code to m_reclaim to call if_drain in each ifnet that has one set. Remove register from declarations.
Revision 1.26 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:33 1998 UTC (15 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.25: +2 -2
lines
Diff to previous 1.25 (colored)
Merge with Lite2 + local changes
Revision 1.25 / (download) - annotate - [select for diffs], Thu Feb 12 20:39:46 1998 UTC (15 years, 3 months ago) by kleink
Branch: MAIN
Changes since 1.24: +2 -2
lines
Diff to previous 1.24 (colored)
Fix variable declarations: register -> register int.
Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 10 14:09:50 1998 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.23: +3 -1
lines
Diff to previous 1.23 (colored)
- add defopt's for UVM, UVMHIST and PMAP_NEW. - remove unnecessary UVMHIST_DECL's.
Revision 1.23 / (download) - annotate - [select for diffs], Thu Feb 5 07:59:59 1998 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.22: +10 -1
lines
Diff to previous 1.22 (colored)
initial import of the new virtual memory system, UVM, into -current. UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some minor portions derived from the old Mach code. i provided some help getting swap and paging working, and other bug fixes/ideas. chuck silvers <chuq@chuq.com> also provided some other fixes. this is the rest of the MI portion changes. this will be KNF'd shortly. :-)
Revision 1.22 / (download) - annotate - [select for diffs], Thu Nov 20 04:28:18 1997 UTC (15 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +4 -2
lines
Diff to previous 1.21 (colored)
In m_split(), restore m_pkthdr.len if an error occurs. From Koji Imada, PR #3986.
Revision 1.21 / (download) - annotate - [select for diffs], Fri Jun 6 10:51:49 1997 UTC (15 years, 11 months ago) by pk
Branch: MAIN
CVS Tags: thorpej-signal-base,
thorpej-signal,
netbsd-1-3-base,
marc-pcmcia-bp,
marc-pcmcia-base,
marc-pcmcia,
bouyer-scsipi
Branch point for: netbsd-1-3
Changes since 1.20: +2 -3
lines
Diff to previous 1.20 (colored)
Get `canwait' argument to kmem_malloc() right.
Revision 1.20 / (download) - annotate - [select for diffs], Mon Apr 28 17:03:59 1997 UTC (16 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.19: +2 -1
lines
Diff to previous 1.19 (colored)
Oops; forgot to GC the last mbuf allocated when out of clusters.
Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 24 08:14:06 1997 UTC (16 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.18: +6 -5
lines
Diff to previous 1.18 (colored)
If we fail to allocate a cluster to hold a large packet, simply drop it rather than using a chain of tiny mbufs.
Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 27 20:33:08 1997 UTC (16 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.17: +133 -13
lines
Diff to previous 1.17 (colored)
Update and enhancement to the mbuf code, to support use of non-cluster external storage. Highlights: - additional "void *" argument to (*ext_free)(), an opaque cookie for use by the free function. - MCLALLOC() and MCLFREE() calls are gone. They are replaced by MEXTADD() (add external storage to mbuf), MEXTMALLOC() (malloc() external storage and attach to mbuf), and MEXTREMOVE() (remove external storage from mbuf). - completely new external storage reference counting mechanism; mclrefcnt[] is gone. These changes will eventually be used to pass driver DMA buffers up the network stack, and reduce/eliminate copies in certain code paths (e.g. NFS writes). From Matt Thomas <matt@3am-software.com> and myself <thorpej@nas.nasa.gov>, with some input from Chris Demetriou <cgd@cs.cmu.edu> and review by Charles Hannum <mycroft@mit.edu>.
Revision 1.17 / (download) - annotate - [select for diffs], Wed Dec 18 20:24:50 1996 UTC (16 years, 5 months ago) by gwr
Branch: MAIN
CVS Tags: thorpej-setroot,
mrg-vm-swap,
is-newarp-before-merge,
is-newarp-base,
is-newarp
Changes since 1.16: +2 -2
lines
Diff to previous 1.16 (colored)
Move `static' to the beginning of the storage class specifiers.
Revision 1.16 / (download) - annotate - [select for diffs], Thu Jun 13 17:02:23 1996 UTC (16 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.15: +12 -6
lines
Diff to previous 1.15 (colored)
if kmem_malloc() fails while trying to allocate an mbuf cluster, try and free some space by calling m_reclaim(). Also, log the "mb_map full" error message (at most) every 60-seconds. The old code would log it once over the lifetime of the system, but that's not a useful diagnostic. (More useful is the new behaviour, which roughly indicates how often periods of heavy load occur, without spamming the console and system logs with messages.)
Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 9 19:00:45 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.14: +1 -3
lines
Diff to previous 1.14 (colored)
More proto fixes
Revision 1.14 / (download) - annotate - [select for diffs], Sun Feb 4 02:17:46 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.13: +12 -6
lines
Diff to previous 1.13 (colored)
First pass at prototyping
Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 30 21:48:06 1994 UTC (18 years, 6 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Changes since 1.12: +7 -3
lines
Diff to previous 1.12 (colored)
be more careful with types, also pull in headers where necessary.
Revision 1.12 / (download) - annotate - [select for diffs], Wed Sep 28 00:44:30 1994 UTC (18 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +2 -7
lines
Diff to previous 1.11 (colored)
don't play with CLBYTES in cpp
Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 19 08:07:17 1994 UTC (18 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +2 -1
lines
Diff to previous 1.10 (colored)
m_adj() returns void.
Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 29 06:33:34 1994 UTC (18 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.9: +3 -2
lines
Diff to previous 1.9 (colored)
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.9 / (download) - annotate - [select for diffs], Fri May 13 06:01:32 1994 UTC (19 years ago) by mycroft
Branch: MAIN
Changes since 1.8: +148 -12
lines
Diff to previous 1.8 (colored)
Update to 4.4-Lite networking code, with a few local changes.
Revision 1.8 / (download) - annotate - [select for diffs], Thu Apr 14 21:34:17 1994 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.7: +4 -3
lines
Diff to previous 1.7 (colored)
the packet header is at the start of the mbuf chain, not the end.
Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 8 05:32:20 1994 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +2 -1
lines
Diff to previous 1.6 (colored)
#include vm_kern.h.
Revision 1.6 / (download) - annotate - [select for diffs], Sat Dec 18 04:22:25 1993 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +12 -11
lines
Diff to previous 1.5 (colored)
Canonicalize all #includes.
Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 22 02:48:35 1993 UTC (19 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.4: +15 -16
lines
Diff to previous 1.4 (colored)
slightly clean up ws's original patch to this file for the sense of wait vs. nowait. this patch from torek.
Revision 1.4 / (download) - annotate - [select for diffs], Sat Sep 4 00:01:43 1993 UTC (19 years, 8 months ago) by jtc
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.3: +3 -1
lines
Diff to previous 1.3 (colored)
Include systm.h to get prototypes (and possibly inlines) of *max functions. Change mbinit() to match prototype.
Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 02:55:24 1993 UTC (20 years ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001,
netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9
Changes since 1.2: +2 -8
lines
Diff to previous 1.2 (colored)
add $Id$ strings, and clean up file headers where necessary
Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (20 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2,
netbsd-alpha-1,
netbsd-0-8
Changes since 1.1: +19 -11
lines
Diff to previous 1.1 (colored)
after 0.2.2 "stable" patches applied
Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (20 years, 2 months ago) by cgd
Branch: MAIN
Initial revision