dragonfly.git
18 years agoPreserve the target M_EXT_CLUSTER flag when duplicating a packet header.
Jeffrey Hsu [Thu, 9 Jun 2005 16:53:11 +0000 (16:53 +0000)]
Preserve the target M_EXT_CLUSTER flag when duplicating a packet header.

18 years agoAdd a missing lwkt_reltoken() in the NULL return path. Do not count NULL
Matthew Dillon [Thu, 9 Jun 2005 16:53:10 +0000 (16:53 +0000)]
Add a missing lwkt_reltoken() in the NULL return path.  Do not count NULL
returns in the gets_cumulative statistic.

18 years agoAdd directories for gcc40
Simon Schubert [Thu, 9 Jun 2005 14:35:29 +0000 (14:35 +0000)]
Add directories for gcc40

18 years agoThe header type of a mbuf doesn't change when appended onto a chain.
Jeffrey Hsu [Thu, 9 Jun 2005 02:03:39 +0000 (02:03 +0000)]
The header type of a mbuf doesn't change when appended onto a chain.

18 years agoA packet header without any packet tags is still a packet header.
Jeffrey Hsu [Thu, 9 Jun 2005 01:55:12 +0000 (01:55 +0000)]
A packet header without any packet tags is still a packet header.

18 years agoOnly duplicate packet headers into mbuf packet headers.
Jeffrey Hsu [Wed, 8 Jun 2005 23:50:35 +0000 (23:50 +0000)]
Only duplicate packet headers into mbuf packet headers.

18 years agoGet an mbuf packet header to begin with instead of getting an mbuf and then
Jeffrey Hsu [Wed, 8 Jun 2005 23:45:00 +0000 (23:45 +0000)]
Get an mbuf packet header to begin with instead of getting an mbuf and then
immediately changing it into an mbuf packet header.

18 years agoOnly allow packet headers to be copied into a packet header mbuf.
Jeffrey Hsu [Wed, 8 Jun 2005 23:39:08 +0000 (23:39 +0000)]
Only allow packet headers to be copied into a packet header mbuf.

18 years agoShould have allocated a mbuf packet header to begin with.
Jeffrey Hsu [Wed, 8 Jun 2005 23:29:29 +0000 (23:29 +0000)]
Should have allocated a mbuf packet header to begin with.

18 years agoAllocate the right type of mbuf to begin with rather than switching types
Jeffrey Hsu [Wed, 8 Jun 2005 23:14:29 +0000 (23:14 +0000)]
Allocate the right type of mbuf to begin with rather than switching types
afterwards.

18 years agoConvert to use m_getl() in order to take advantage of cluster caching and
Jeffrey Hsu [Wed, 8 Jun 2005 23:10:27 +0000 (23:10 +0000)]
Convert to use m_getl() in order to take advantage of cluster caching and
to avoid switching the mbuf type from non-packet header to packet header.

18 years agoRollup mbuf/objcache fixes.
Matthew Dillon [Wed, 8 Jun 2005 22:22:59 +0000 (22:22 +0000)]
Rollup mbuf/objcache fixes.

* Completely replace the blocking algorithm that is used to stall when the
  depot has insufficient resources.

* Use __offsetof() to calculate variable length structural sizes.

* #if 0 out balancing code for now.  There isn't actually much of a need for
  it since each cpu can hold no more then two magazines anyway.  The depot
  will have the rest.

* Increase the magazine capacity from 5 to 256 elements to improve
  performance.

* The mbufs were being returned to a different objcache then they had been
  allocated from, due to a dependance on M_PKTHDR  and M_EXT.  But these
  flags can change unexpectedly and this led to lockups in the objcache
  code and other issues.  Also the share count on the cluster may mean
  that it is not possible to release an mbuf+cluster back to its original
  mbuf+cluster cache... it may have to be DTORed instead.

* Change the way ref counts are handled in the mclmeta_cache.  The cache
  returns and expects a ref count of 0 now, and the link code deals with
  bumping it.

18 years agoHandle the case where the version file might be empty, which can occur
Matthew Dillon [Wed, 8 Jun 2005 22:14:37 +0000 (22:14 +0000)]
Handle the case where the version file might be empty, which can occur
if a machine crashes while building the kernel.

18 years agoTemporary hack to fix interrupt race when decrementing a shared
Matthew Dillon [Wed, 8 Jun 2005 19:29:32 +0000 (19:29 +0000)]
Temporary hack to fix interrupt race when decrementing a shared
mbuf cluster count.

18 years agoReorder initialisation to make protection unnecessary.
Joerg Sonnenberger [Wed, 8 Jun 2005 19:20:09 +0000 (19:20 +0000)]
Reorder initialisation to make protection unnecessary.

Use device_printf in wb_attach. Leave critical section ASAP in wb_detach.
Use M_WAITOK for contigmalloc.

Partly-obtained-from: FreeBSD (first part).

18 years agoFix detach order: We have to unhook the interrupt first and leave the
Joerg Sonnenberger [Wed, 8 Jun 2005 19:03:10 +0000 (19:03 +0000)]
Fix detach order: We have to unhook the interrupt first and leave the
critical section afterwards.

18 years agoReorder code in m_chtype() to properly decrement the mbtype stats. Before
Matthew Dillon [Wed, 8 Jun 2005 16:30:47 +0000 (16:30 +0000)]
Reorder code in m_chtype() to properly decrement the mbtype stats.  Before
it was assigning the new type before (attempting to) decrement the old, and
decrementing the new instead.

18 years agoRemove spl*() in src/sys/dev/serial/{cy,rc,rp,si,sio,stl,stli}
Max Okumoto [Wed, 8 Jun 2005 08:25:50 +0000 (08:25 +0000)]
Remove spl*() in src/sys/dev/serial/{cy,rc,rp,si,sio,stl,stli}
and replace them with critical sections.

18 years agoClean up some of the worst style issues:
Sascha Wildner [Tue, 7 Jun 2005 20:21:23 +0000 (20:21 +0000)]
Clean up some of the worst style issues:

o Remove whitespace (around parentheses, at the end of lines, etc.).
  Why do people waste so much whitespace??

o Use tabs where possible.

o Put function return types on a single line.

o Remove empty lines after {.

o Remove argument names from prototypes.

18 years agoRe-implement the mbuf allocator using the object cache.
Jeffrey Hsu [Tue, 7 Jun 2005 19:08:55 +0000 (19:08 +0000)]
Re-implement the mbuf allocator using the object cache.

18 years agoGeneric cache of pre-initialized objects. It uses per-cpu caches
Jeffrey Hsu [Tue, 7 Jun 2005 19:07:11 +0000 (19:07 +0000)]
Generic cache of pre-initialized objects.  It uses per-cpu caches
for MP-safety, was designed to be NUMA-aware, and works on top of
any storage allocator.  The object cache is largely inspired by the
object cache portion of Sun's slab allocator.

18 years agoPrefer the clearer m_getc() API over m_getm().
Jeffrey Hsu [Tue, 7 Jun 2005 19:06:08 +0000 (19:06 +0000)]
Prefer the clearer m_getc() API over m_getm().

18 years agoremove an unused struct
YONETANI Tomokazu [Tue, 7 Jun 2005 00:52:34 +0000 (00:52 +0000)]
remove an unused struct

18 years agoReplace spl*() with critical sections.
YONETANI Tomokazu [Tue, 7 Jun 2005 00:51:13 +0000 (00:51 +0000)]
Replace spl*() with critical sections.

18 years agoRemove spl*() in src/sys/dev/netif/wi
Max Okumoto [Mon, 6 Jun 2005 23:13:26 +0000 (23:13 +0000)]
Remove spl*() in src/sys/dev/netif/wi
and replace them with critical sections.

18 years agoRemove spl*() in src/sys/dev/netif/{ste,ti,tl,tx,txp,vr,vx,wb,wl,xe}
Max Okumoto [Mon, 6 Jun 2005 23:12:07 +0000 (23:12 +0000)]
Remove spl*() in src/sys/dev/netif/{ste,ti,tl,tx,txp,vr,vx,wb,wl,xe}
and replace them with critical sections.

18 years agoconvert spl* to critical sections
Simon Schubert [Mon, 6 Jun 2005 22:51:54 +0000 (22:51 +0000)]
convert spl* to critical sections

18 years agoAdd entry for disk/mpt, "LSI '909 FC adapters"
Simon Schubert [Mon, 6 Jun 2005 22:45:39 +0000 (22:45 +0000)]
Add entry for disk/mpt, "LSI '909 FC adapters"

18 years agoremove bs, a pc98-only driver
Simon Schubert [Mon, 6 Jun 2005 22:18:13 +0000 (22:18 +0000)]
remove bs, a pc98-only driver

18 years agoremove ct, a pc98-only driver
Simon Schubert [Mon, 6 Jun 2005 22:03:20 +0000 (22:03 +0000)]
remove ct, a pc98-only driver

18 years agoDeprecate MCLGET() in favor of m_getcl() or m_getl() in order to
Jeffrey Hsu [Mon, 6 Jun 2005 21:50:28 +0000 (21:50 +0000)]
Deprecate MCLGET() in favor of m_getcl() or m_getl() in order to
take advantage of cluster caching.

18 years agoMore spl_* removal from dev/disk/, replacing them with critical sections.
Eirik Nygaard [Mon, 6 Jun 2005 21:48:16 +0000 (21:48 +0000)]
More spl_* removal from dev/disk/, replacing them with critical sections.

18 years ago- We should use inet_ntoa which returns an ASCII string of representing the
Liam J. Foy [Mon, 6 Jun 2005 18:17:09 +0000 (18:17 +0000)]
- We should use inet_ntoa which returns an ASCII string of representing the
  address in '.' notation.

18 years agoConvert splimp to criticial sections for now. Cleanup the critical
Joerg Sonnenberger [Mon, 6 Jun 2005 16:32:28 +0000 (16:32 +0000)]
Convert splimp to criticial sections for now. Cleanup the critical
sections a bit.

18 years agoLet the system deal with device shutdown, don't do it yourself.
Joerg Sonnenberger [Mon, 6 Jun 2005 16:16:13 +0000 (16:16 +0000)]
Let the system deal with device shutdown, don't do it yourself.

18 years agoUse WAITOK allocation, fix some arguments and remove a now unused
Joerg Sonnenberger [Mon, 6 Jun 2005 15:59:06 +0000 (15:59 +0000)]
Use WAITOK allocation, fix some arguments and remove a now unused
variable.

18 years agoAlways hook the interrupt up last, we don't have to worry about
Joerg Sonnenberger [Mon, 6 Jun 2005 15:53:17 +0000 (15:53 +0000)]
Always hook the interrupt up last, we don't have to worry about
ISR access that way.

18 years agoReplace splimp with critical sections for now. Fix a bug in xl_init,
Joerg Sonnenberger [Mon, 6 Jun 2005 15:42:18 +0000 (15:42 +0000)]
Replace splimp with critical sections for now. Fix a bug in xl_init,
when the TX ring couldn't be initialized, we must not continue.

18 years agoGet rid of an unused variable due to the last commit.
Matthew Dillon [Mon, 6 Jun 2005 15:35:28 +0000 (15:35 +0000)]
Get rid of an unused variable due to the last commit.

18 years agoAdd some missing #include's from the last commit.
Matthew Dillon [Mon, 6 Jun 2005 15:35:09 +0000 (15:35 +0000)]
Add some missing #include's from the last commit.

18 years agoRemove splimp in xl_attach, the interrupt is created last and
Joerg Sonnenberger [Mon, 6 Jun 2005 15:27:28 +0000 (15:27 +0000)]
Remove splimp in xl_attach, the interrupt is created last and
therefore protection needed.

18 years agoReplace spl with critical sections.
David Rhodus [Mon, 6 Jun 2005 15:09:38 +0000 (15:09 +0000)]
Replace spl with critical sections.

18 years agoRemove spl*() calls from kern, replacing them with critical sections.
Matthew Dillon [Mon, 6 Jun 2005 15:02:28 +0000 (15:02 +0000)]
Remove spl*() calls from kern, replacing them with critical sections.
Change the meaning of safepri from a cpl mask to a thread priority.
Make a minor adjustment to tests within one of the buffer cache's
critical sections.

18 years agoMerge from vendor branch SENDMAIL:
Gregory Neil Shapiro [Mon, 6 Jun 2005 04:25:51 +0000 (04:25 +0000)]
Merge from vendor branch SENDMAIL:
Import sendmail 8.13.4 into a new contrib directory as the first step
towards upgrading sendmail in DragonFly.  The build infrastructure will
follow over the next couple of days.

18 years agoImport sendmail 8.13.4 into a new contrib directory as the first step
Gregory Neil Shapiro [Mon, 6 Jun 2005 04:25:51 +0000 (04:25 +0000)]
Import sendmail 8.13.4 into a new contrib directory as the first step
towards upgrading sendmail in DragonFly.  The build infrastructure will
follow over the next couple of days.

18 years agoAdd gcc40 infrastructure, but don't tie it to the build yet.
Simon Schubert [Sun, 5 Jun 2005 22:43:21 +0000 (22:43 +0000)]
Add gcc40 infrastructure, but don't tie it to the build yet.

18 years agoAdd infrastructure to build (static) libs for the host system
Simon Schubert [Sun, 5 Jun 2005 19:23:10 +0000 (19:23 +0000)]
Add infrastructure to build (static) libs for the host system

18 years agoMerge from vendor branch GCC:
Simon Schubert [Sun, 5 Jun 2005 18:26:15 +0000 (18:26 +0000)]
Merge from vendor branch GCC:
Import of virgin gcc 4.0.0 distribution.
Unneccessary files and dirs have been deleted and recorded in
README.DELETED.

18 years agoImport of virgin gcc 4.0.0 distribution.
Simon Schubert [Sun, 5 Jun 2005 18:26:15 +0000 (18:26 +0000)]
Import of virgin gcc 4.0.0 distribution.
Unneccessary files and dirs have been deleted and recorded in
README.DELETED.

18 years agoMake call to arc_ioctl the default case.
Joerg Sonnenberger [Sun, 5 Jun 2005 16:05:33 +0000 (16:05 +0000)]
Make call to arc_ioctl the default case.

18 years agoMerge the pointer to the link-layer address into ifnet and remove
Joerg Sonnenberger [Sun, 5 Jun 2005 12:35:24 +0000 (12:35 +0000)]
Merge the pointer to the link-layer address into ifnet and remove
ifnet_addrs. Change the rest of the code accordingly.

18 years agounbreak world: only include sys/thread2.h in kernel, not in userland
Simon Schubert [Sun, 5 Jun 2005 12:17:46 +0000 (12:17 +0000)]
unbreak world: only include sys/thread2.h in kernel, not in userland

18 years agoAdd f_owner (user who mounted the filesystem), f_type (filesystem type ID),
Joerg Sonnenberger [Sun, 5 Jun 2005 12:16:53 +0000 (12:16 +0000)]
Add f_owner (user who mounted the filesystem), f_type (filesystem type ID),
f_(a)sync(reads,writes) (counters for sync and async read / writes).
Also add some spare fields for latter additions.

18 years agoAdd include file protection wrapper.
Jeroen Ruigrok/asmodai [Sun, 5 Jun 2005 09:40:46 +0000 (09:40 +0000)]
Add include file protection wrapper.

Wrap function definition in #if 0/#endif until they are added.

18 years agoInstead of using ifnet_addrs and following ifa_ifp, use ifindex2ifnet
Joerg Sonnenberger [Sun, 5 Jun 2005 00:25:10 +0000 (00:25 +0000)]
Instead of using ifnet_addrs and following ifa_ifp, use ifindex2ifnet
directly.

18 years ago- int -> pid_t for pid
Liam J. Foy [Sat, 4 Jun 2005 20:35:06 +0000 (20:35 +0000)]
- int -> pid_t for pid

18 years agoInstead of checking for ifnet_addrs[ifp->index - 1] == NULL to detect
Joerg Sonnenberger [Sat, 4 Jun 2005 14:41:57 +0000 (14:41 +0000)]
Instead of checking for ifnet_addrs[ifp->index - 1] == NULL to detect
running from if_detach, introduce in_ifdetach and call that after the
address list has been processed. This reduces the differences between
IPv4 and IPv6 stack.

18 years agoconvert spl*() to critical sections.
Simon Schubert [Sat, 4 Jun 2005 14:25:45 +0000 (14:25 +0000)]
convert spl*() to critical sections.

18 years ago * Include string.h to get strlen() prototype.
Eirik Nygaard [Sat, 4 Jun 2005 13:42:28 +0000 (13:42 +0000)]
 * Include string.h to get strlen() prototype.
 * Shut up gcc warning.

18 years agoThe acpi module was failing to load due to exposed crit_*() functions. Add
Matthew Dillon [Sat, 4 Jun 2005 03:22:08 +0000 (03:22 +0000)]
The acpi module was failing to load due to exposed crit_*() functions.  Add
a missing #include to get the crit_*() inlines.

Found by: Matt Dillon when his power button stopped working, click click click!

18 years agoReplace cpu_mb1() and cpu_mb2() with cpu_mfence(), cpu_lfence(), cpu_sfence(),
Matthew Dillon [Fri, 3 Jun 2005 23:57:34 +0000 (23:57 +0000)]
Replace cpu_mb1() and cpu_mb2() with cpu_mfence(), cpu_lfence(), cpu_sfence(),
and cpu_ccfence().  These provide memory and compiler fences to guarentee
read/write ordering of memory and to prevent the compiler itself from
generating reordered code in particular cases.

Most of the cases where care must be taken are tail-chasing FIFO cases,
especially in the IPI messaging code.

At the moment on SMP boxes we use a locked bus cycle on (%%esp) for the
lfence and mfence.  The only other choices are to use a cpuid instruction
or one of the {S,L,M}FENCE instructions.  cpuid is usually horrible, and
the *FENCE instructions do not exist on older cpus.

Linux seems to use the locked bus cycle or *FENCE instruction method.

Although I have no conclusive evidence, a number of crash dumps provided
by David Rhodus has led me to believe that speculative reads by modern cpus,
in particular in HTT situations with Intel cpus, can survive many more
instructions then previously believed.  The only safe solution is to use
an instruction sequence which guarentees proper operation.

I would prefer to avoid the use of a locked bus cycle but at least in the
IPIQ case (the most common case we have to worry about), only one locked
bus cycle is required and then the entire IPIQ can be processed without
further locked cycles.

18 years agoAnother instance of IF_LLSOCKADDR.
Joerg Sonnenberger [Fri, 3 Jun 2005 23:31:36 +0000 (23:31 +0000)]
Another instance of IF_LLSOCKADDR.

18 years agoAdd a new macro IF_LLSOCKADDR which maps a ifnet pointer to the
Joerg Sonnenberger [Fri, 3 Jun 2005 23:23:03 +0000 (23:23 +0000)]
Add a new macro IF_LLSOCKADDR which maps a ifnet pointer to the
associated link layer sockaddr. Use it to implement IF_LLADDR.
Replace most references of ifnet_addrs with one of those macros.

This makes the sometimes explicitly encoded assumption of each
interface having a link-layer address implicit and is the
preparation for removing ifnet_addrs.

18 years agoExpand itjc_bus_setup, it declares variables.
Joerg Sonnenberger [Fri, 3 Jun 2005 23:14:26 +0000 (23:14 +0000)]
Expand itjc_bus_setup, it declares variables.

18 years agoRename label to not collidate with local variable. Conditionalize error,
Joerg Sonnenberger [Fri, 3 Jun 2005 23:10:23 +0000 (23:10 +0000)]
Rename label to not collidate with local variable. Conditionalize error,
it's not yet used. Use #ifdef instead of depending on 0 for undefined
macros.

18 years agoInclude sys/thread2.h to unbreak build.
Joerg Sonnenberger [Fri, 3 Jun 2005 23:06:31 +0000 (23:06 +0000)]
Include sys/thread2.h to unbreak build.

18 years agoAdd missing parameter.
Joerg Sonnenberger [Fri, 3 Jun 2005 23:05:22 +0000 (23:05 +0000)]
Add missing parameter.

18 years agovm_contig_pg_free() must busy the page before freeing it in the case
Matthew Dillon [Fri, 3 Jun 2005 22:58:09 +0000 (22:58 +0000)]
vm_contig_pg_free() must busy the page before freeing it in the case
of a contigmalloc failure.

18 years agoreorder declarations
Joerg Sonnenberger [Fri, 3 Jun 2005 22:57:56 +0000 (22:57 +0000)]
reorder declarations

18 years agoAugment the panic when attempting to switch from a FAST interrupt to include
Matthew Dillon [Fri, 3 Jun 2005 22:57:27 +0000 (22:57 +0000)]
Augment the panic when attempting to switch from a FAST interrupt to include
the thread address, since it may not be readily apparent from the kernel
dump.

18 years agoUse IF_DRAIN.
Joerg Sonnenberger [Fri, 3 Jun 2005 22:56:26 +0000 (22:56 +0000)]
Use IF_DRAIN.

18 years agoAdd a sysctl, debug.use_malloc_pattern, that explicitly initializes data
Matthew Dillon [Fri, 3 Jun 2005 22:55:58 +0000 (22:55 +0000)]
Add a sysctl, debug.use_malloc_pattern, that explicitly initializes data
buffers allocated WITHOUT M_ZERO to -1 rather then leaving prior garbage
intact.  Works with INVARIANTS builds only.

18 years agoRemove spl*() in disk/{ata,buslogic,ccd} and replace them with
Sascha Wildner [Fri, 3 Jun 2005 21:56:23 +0000 (21:56 +0000)]
Remove spl*() in disk/{ata,buslogic,ccd} and replace them with
critical sections.

18 years agoDocument thread-safety.
Jeroen Ruigrok/asmodai [Fri, 3 Jun 2005 21:28:49 +0000 (21:28 +0000)]
Document thread-safety.

18 years agoDon't commit half of a change. Prefix parameter names and local arguments
Joerg Sonnenberger [Fri, 3 Jun 2005 21:19:09 +0000 (21:19 +0000)]
Don't commit half of a change. Prefix parameter names and local arguments
with _ in inline functions.

18 years agocpu_mb2() needs to load %eax with $0 before running cpuid.
Matthew Dillon [Fri, 3 Jun 2005 20:20:44 +0000 (20:20 +0000)]
cpu_mb2() needs to load %eax with $0 before running cpuid.

18 years agoDon't name arguments in prototypes. Nuke __STDC__ conditional.
Joerg Sonnenberger [Fri, 3 Jun 2005 20:16:28 +0000 (20:16 +0000)]
Don't name arguments in prototypes. Nuke __STDC__ conditional.

18 years agoRemove *spl() from netinet6 replacing them with critical sections.
Eirik Nygaard [Fri, 3 Jun 2005 19:56:08 +0000 (19:56 +0000)]
Remove *spl() from netinet6 replacing them with critical sections.

18 years agoRemove spl*() in net/{altq,bpf.c,bridge,dummynet,ef,gif,gre,hostcache.c}
Sascha Wildner [Fri, 3 Jun 2005 18:20:37 +0000 (18:20 +0000)]
Remove spl*() in net/{altq,bpf.c,bridge,dummynet,ef,gif,gre,hostcache.c}
and replace them with critical sections.

[forced commit to correct message]

18 years agoRemove spl*() in net/{altq,bpf.c,bridge,dummynet,ef,gif,gre,hostcache.c}
Sascha Wildner [Fri, 3 Jun 2005 18:04:14 +0000 (18:04 +0000)]
Remove spl*() in net/{altq,bpf.c,bridge,dummynet,ef,gif,gre,hostcache.c}
netgraph and replace them with critical sections.

18 years agoRemove spl*() calls from i386, replacing them with critical sections.
Matthew Dillon [Fri, 3 Jun 2005 17:14:51 +0000 (17:14 +0000)]
Remove spl*() calls from i386, replacing them with critical sections.
Leave spl support intact for the moment (it will be removed soon).  Adjust
the interrupt mux to use a critical section for 'old' interrupt handlers
not using the new serialization API (which is nearly all of them at the
moment).

18 years agoRemove *spl() from dev/disk/{advansys,aha,ahb,aic7xxx,amd} replacing them with
Eirik Nygaard [Fri, 3 Jun 2005 16:57:13 +0000 (16:57 +0000)]
Remove *spl() from dev/disk/{advansys,aha,ahb,aic7xxx,amd} replacing them with
critical sections.

18 years agoRemove spl*() calls from net/i4b, replacing them with critical sections.
Matthew Dillon [Fri, 3 Jun 2005 16:50:13 +0000 (16:50 +0000)]
Remove spl*() calls from net/i4b, replacing them with critical sections.

18 years agoMake -I only apply to rm's run in the foreground. Silently discard it if
Matthew Dillon [Fri, 3 Jun 2005 16:00:23 +0000 (16:00 +0000)]
Make -I only apply to rm's run in the foreground.  Silently discard it if
the rm is run in the background.

Reported-by: "George Georgalis" <george@galis.org>
18 years agoBump FreeBSD identifier to 1.16 to signal to which version we synchronised.
Jeroen Ruigrok/asmodai [Fri, 3 Jun 2005 11:54:37 +0000 (11:54 +0000)]
Bump FreeBSD identifier to 1.16 to signal to which version we synchronised.

18 years agoFix last two return() calls to comply to style.
Jeroen Ruigrok/asmodai [Fri, 3 Jun 2005 11:51:33 +0000 (11:51 +0000)]
Fix last two return() calls to comply to style.
Explicitly kept from previous commit to not confuse content and style.

18 years agoSync to FreeBSD 1.14/1.15:
Jeroen Ruigrok/asmodai [Fri, 3 Jun 2005 11:50:17 +0000 (11:50 +0000)]
Sync to FreeBSD 1.14/1.15:

Use nanoseconds and then lexicographic ordering when the seconds of the
[acm]time are the same.

Written by: dwmalone

Changed to comply to our style.

18 years agoAdd first stab at a statvfs.h.
Jeroen Ruigrok/asmodai [Fri, 3 Jun 2005 11:29:32 +0000 (11:29 +0000)]
Add first stab at a statvfs.h.

It most likely needs to cut back on the sys/types.h inclusion to limit
namespace pollution.

18 years agoAdd id_t, a general identifier type, per IEEE Std 1003.1, 2004 Edition.
Jeroen Ruigrok/asmodai [Fri, 3 Jun 2005 11:07:34 +0000 (11:07 +0000)]
Add id_t, a general identifier type, per IEEE Std 1003.1, 2004 Edition.
It should be able to hold a gid_t/pid_t/uid_t.

18 years agoAdd blkcnt_t and blksize_t per IEEE Std 1003.1, 2004 Edition.
Jeroen Ruigrok/asmodai [Fri, 3 Jun 2005 09:45:53 +0000 (09:45 +0000)]
Add blkcnt_t and blksize_t per IEEE Std 1003.1, 2004 Edition.

I do not understand why both FreeBSD and NetBSD use an unsigned integer,
when the specification clearly states an signed integer should be used.

18 years agoAdd fsblkcnt_t and fsfilcnt_t.
Jeroen Ruigrok/asmodai [Fri, 3 Jun 2005 09:17:36 +0000 (09:17 +0000)]
Add fsblkcnt_t and fsfilcnt_t.
Part of IEEE Std 1003.1, 2004 Edition.

18 years agoCovert netproto/ipsec into using critical sections instead of SPL ops.
Hiten Pandya [Fri, 3 Jun 2005 00:22:27 +0000 (00:22 +0000)]
Covert netproto/ipsec into using critical sections instead of SPL ops.

18 years agoRemove spl*() calls from netinet, replacing them with critical sections.
Matthew Dillon [Thu, 2 Jun 2005 23:52:42 +0000 (23:52 +0000)]
Remove spl*() calls from netinet, replacing them with critical sections.
A slight rearrangement of COMMON_START() in tcp_usrreq.c was necessary to
ensure that the inp is loaded after  entering the critical section.

18 years agoCorrect typo in comment for vshiftl().
Hiten Pandya [Thu, 2 Jun 2005 23:50:30 +0000 (23:50 +0000)]
Correct typo in comment for vshiftl().

18 years agoRemove spl*() calls from the netproto/atm driver, replacing them with
Matthew Dillon [Thu, 2 Jun 2005 22:37:52 +0000 (22:37 +0000)]
Remove spl*() calls from the netproto/atm driver, replacing them with
critical sections.

18 years agoRemove spl*() calls in netgraph and replace them with critical sections.
Sascha Wildner [Thu, 2 Jun 2005 22:11:46 +0000 (22:11 +0000)]
Remove spl*() calls in netgraph and replace them with critical sections.

18 years agoAfter some thought, replace the splhigh()/spl0() combination in swapout()
Matthew Dillon [Thu, 2 Jun 2005 22:03:49 +0000 (22:03 +0000)]
After some thought, replace the splhigh()/spl0() combination in swapout()
with a critical section.

18 years agoFix a warning by conditionalizing a forward declaration.
Matthew Dillon [Thu, 2 Jun 2005 21:55:22 +0000 (21:55 +0000)]
Fix a warning by conditionalizing a forward declaration.

18 years agoRemove variable names from procedure declarations so userland doesn't
Matthew Dillon [Thu, 2 Jun 2005 21:51:31 +0000 (21:51 +0000)]
Remove variable names from procedure declarations so userland doesn't
trip up on the header file.

18 years agoConditionalize thread2.h so /usr/src/usr.bin/fstat can include vm_object.h.
Matthew Dillon [Thu, 2 Jun 2005 21:51:00 +0000 (21:51 +0000)]
Conditionalize thread2.h so /usr/src/usr.bin/fstat can include vm_object.h.