The NetBSD Project

CVS log for src/sys/kern/sysv_msg.c

[BACK] Up to [] / src / sys / kern

Request diff between arbitrary revisions

Default branch: MAIN
Current tag: MAIN

Revision 1.76 / (download) - annotate - [select for diffs], Fri Oct 4 23:20:22 2019 UTC (6 weeks, 2 days ago) by kamil
Branch: MAIN
Changes since 1.75: +3 -2 lines
Diff to previous 1.75 (colored)

Avoid -LONG_MIN msgtyp in msgrcv(2) and treat it as LONG_MAX

This logic (found in Linux) avoids undefined behavior.


Revision 1.75 / (download) - annotate - [select for diffs], Wed Aug 7 00:38:02 2019 UTC (3 months, 1 week ago) by pgoyette
Branch: MAIN
Changes since 1.74: +3 -7 lines
Diff to previous 1.74 (colored)

Many years ago someone created a new __link_set_sysctl_funcs to hold
the list of routines that need to be called for setting up sysctl
variables.  This worked great for all code included in the kernel
itself, but didn't deal with modules that want to create their own
sysctl data.  So, we ended up with a lot of #ifdef _MODULE blocks
so modules could explicitly call their setup functions when loaded
as non-built-in modules.

So today, we complete the task that was started so many years ago.

When modules are loaded, after we've called xxx_modcmd(INIT...) we
check if the module contains its own __link_set_sysctl_funcs, and
if so we call the functions listed.  We add a struct sysctllog member
to the struct module so we can call sysctl_teardown() when the module
gets unloaded.  (The sequence of events ensures that the sysctl stuff
doesn't get created until the rest of the module's init code does any
required memory allocation.)

So, no more need to explicitly call the sysctl setup routines when
built as a loadable module.

Revision 1.74 / (download) - annotate - [select for diffs], Wed Apr 10 10:03:50 2019 UTC (7 months, 1 week ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.73: +12 -7 lines
Diff to previous 1.73 (colored)

Replace some "panic()" calls with simple "printf() ; return error"

There's no good reason for these build-time parameters to be allowed to
panic the kernel when it is easy to simply disable the module code and
fail gracefully.

While we're at it, similarly replace panic() when malloc fails to also
fail gracefully.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Feb 21 03:37:19 2019 UTC (8 months, 3 weeks ago) by mrg
Branch: MAIN
Changes since 1.72: +12 -3 lines
Diff to previous 1.72 (colored)

for sysv ipc stat operations, explicitly copy the exported parts
instead of the whole ds structure.

besides triggering a recently added assert in netbsd32, this stops
exposing kernel addresses.

copy the mode clamping to 0777 from sem to shm and msg.

while here, make sure that the compat callers to sysv_ipc clear
the contents of the compat structure before setting the result
members to ensure padding bytes are cleared.

don't set/copy _sem_base, _msg_first, _msg_last or _shm_internal.
even if used, which seems very dodgy, they leak KVAs as well.
possibly this may affect linux binaries, in particular, the
comments around _shm_internal ("XXX Oh well.") may mean apps
rely upon these but hopefully not -- the comments date back to
rev 1.1 in 1995.

the _key, _seq and _msg_cbytes members are exported as before as
i found multiple consumers of these (no less than ipcs(1), and
they appear to be useful for debugging and more.

XXX: the naming of compat functions have too many styles.  there
     are at least 3 different ones changed here.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Mar 30 22:54:37 2018 UTC (19 months, 2 weeks ago) by maya
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407
Branch point for: phil-wifi
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

correct typo: and and -> and (comments only)

heads up on this being a common typo from chris28.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Sep 5 14:13:50 2016 UTC (3 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-compat-base, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.70: +3 -2 lines
Diff to previous 1.70 (colored)

don't forget to destroy a cv

Revision 1.70 / (download) - annotate - [select for diffs], Fri Nov 6 02:26:42 2015 UTC (4 years ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.69: +9 -4 lines
Diff to previous 1.69 (colored)

In sysv_sem.c, defer establishment of exithook so we can initialize the
module code from module_init() rather than waiting until after calling
exec_init().  Use a RUN_ONCE routine at entry to each sys_sem* syscall
to establish the exithook, and no longer KASSERT that the hook has
been set before removing it.  (A manually loaded module can be unloaded
before any syscalls have been invoked.)

Remove the conditional calls to the various xxx_init() routines from
init_main.c - we now rely on module_init() to handle initialization.

Let each sub-component's xxx_init() routine handle its own sysctl
sub-tree initialization;  this removes another set of #ifdef ugliness.

Tested both built-in and loadable versions and verified that atf
test kernel/t_sysv passes.

Revision 1.69 / (download) - annotate - [select for diffs], Wed May 13 01:16:15 2015 UTC (4 years, 6 months ago) by pgoyette
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.68: +36 -2 lines
Diff to previous 1.68 (colored)

More prep:  add a xxxfini() routine to each subcomponent so we can
clean up after ourselves.  Mostly, this checks to make sure that
there are no active itmes, and then deallocates wired kernel virtual
memory.  For SYSVSEM, we also disestablish the exithook() so we
won't try to call it after destroying its memory pool!

Revision 1.68 / (download) - annotate - [select for diffs], Wed May 13 01:00:16 2015 UTC (4 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.67: +6 -2 lines
Diff to previous 1.67 (colored)

More preparation for modularizing the SYSVxxx options.  Here we
change the kern.ipc.sysvxxx sysctls into dynamic values, so each
sub-component of SYSVxxx can declare its own availability.

Revision 1.67 / (download) - annotate - [select for diffs], Tue May 12 05:19:20 2015 UTC (4 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.66: +5 -3 lines
Diff to previous 1.66 (colored)

In preparation for modularization of the SYSV* options, restore the
use of opt_sysv.h to get the -DSYSVxxx definitions.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:11 2014 UTC (5 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: nick-nhusb, netbsd-7-1, netbsd-7-0, netbsd-7
Changes since 1.65: +2 -7 lines
Diff to previous 1.65 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Feb 7 11:51:00 2014 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)


Revision 1.64 / (download) - annotate - [select for diffs], Tue Jul 23 07:03:16 2013 UTC (6 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.63: +5 -5 lines
Diff to previous 1.63 (colored)

Fix debug code to not use uninitialised variables.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:54 2012 UTC (7 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet, riastradh-drm2
Changes since 1.62: +8 -4 lines
Diff to previous 1.62 (colored)

Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or

Most of these changes were brought up in the following messages:

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Jul 30 06:19:02 2011 UTC (8 years, 3 months ago) by uebayasi
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.61: +7 -6 lines
Diff to previous 1.61 (colored)

Correct sizes to pass uvm_km_free(9) in error paths.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jan 28 00:59:03 2009 UTC (10 years, 9 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Do not call put_type() but use copyout() when returning the message
segments to the user.

ok by rmind.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jan 26 13:08:48 2009 UTC (10 years, 9 months ago) by njoly
Branch: MAIN
Changes since 1.59: +10 -2 lines
Diff to previous 1.59 (colored)

Make msgsnd(2)/msgrcv(2) fail with EINVAL for messages larger than
SSIZE_MAX. Adjust man pages accordingly.

ok by christos.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:53 2009 UTC (10 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.58: +4 -3 lines
Diff to previous 1.58 (colored)

merge christos-time_t

Revision 1.58 / (download) - annotate - [select for diffs], Fri Sep 19 11:21:33 2008 UTC (11 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.57: +12 -12 lines
Diff to previous 1.57 (colored)

Fix the aligning of memory blocks again, finally...
Tested by <martin> on his sparc64 box.

Revision 1.57 / (download) - annotate - [select for diffs], Thu May 22 11:25:54 2008 UTC (11 years, 5 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.56: +3 -2 lines
Diff to previous 1.56 (colored)

Make msgsnd return EINVAL instead of 0, when the value of mtype is
less than 1.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:05 2008 UTC (11 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.55: +2 -9 lines
Diff to previous 1.55 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jan 7 16:12:54 2008 UTC (11 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2, christos-time_t
Changes since 1.54: +10 -4 lines
Diff to previous 1.54 (colored)

Patch up sysctl locking:

- Lock processes, credentials, filehead etc correctly.
- Acquire a read hold on sysctl_treelock if only doing a query.
- Don't wire down the output buffer. It doesn't work correctly and the code
  regularly does long term sleeps with it held - it's not worth it.
- Don't hold locks other than sysctl_lock while doing copyout().
- Drop sysctl_lock while doing copyout / allocating memory in a few places.
- Don't take kernel_lock for sysctl.
- Fix a number of bugs spotted along the way

Revision 1.54 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:12 2007 UTC (11 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.53: +14 -14 lines
Diff to previous 1.53 (colored)

Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Nov 25 19:03:24 2007 UTC (11 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.52: +31 -22 lines
Diff to previous 1.52 (colored)

- Retry the operations (instead of failing) in case of reallocation.
  Suggested by <yamt>.
- Use predicts in checks for reallocation state.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Nov 4 13:09:32 2007 UTC (12 years ago) by yamt
Branch: MAIN
CVS Tags: jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored)

fix deadlocks.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Nov 4 11:20:34 2007 UTC (12 years ago) by rmind
Branch: MAIN
Changes since 1.50: +323 -13 lines
Diff to previous 1.50 (colored)

Support for dynamic changing of SysV message queues and semaphores limits.
Also fixes the alignment problem, which was here forever.  Thanks for <uwe>
for discussion and <martin> for testing.

Reviewed by: <tech-kern>, <gdt>

Revision 1.50 / (download) - annotate - [select for diffs], Tue Oct 9 03:27:37 2007 UTC (12 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.49: +86 -136 lines
Diff to previous 1.49 (colored)

- Style, consistency;
- Replace most panic() checks with KASSERT();
- msgrcv1: Improve readability;
- Remove #ifdef ENOMSG;

No function changes of the interface are intented.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Mar 13 03:43:54 2007 UTC (12 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

msgctl1: fix a lock leak.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (12 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, vmlocking, mjf-ufs-trans
Changes since 1.47: +148 -80 lines
Diff to previous 1.47 (colored)

Merge newlock2 to head.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Jan 4 17:38:26 2007 UTC (12 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.46: +4 -3 lines
Diff to previous 1.46 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:59 2006 UTC (13 years 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, 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
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored)

remove some __unused from function parameters.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:18 2006 UTC (13 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.44 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:11 2006 UTC (13 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.43: +16 -17 lines
Diff to previous 1.43 (colored)

Use the LWP cached credentials where sane.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:41 2006 UTC (13 years, 5 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Changes since 1.42: +6 -6 lines
Diff to previous 1.42 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper:
  NTP Nanokernel:

Revision 1.42 / (download) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (13 years, 6 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.41: +12 -11 lines
Diff to previous 1.41 (colored)

integrate kauth.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Mar 6 14:24:13 2006 UTC (13 years, 8 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, peter-altq-base, elad-kernelauth-base
Branch point for: peter-altq, elad-kernelauth
Changes since 1.40: +33 -25 lines
Diff to previous 1.40 (colored)

Introduce msgrcv1 and msgsnd1 which take special care of the msg_type
parameter that gets copied in or out, making sys_msg{rcv,snd} friendly to

Revision 1.40 / (download) - annotate - [select for diffs], Wed Dec 7 06:14:13 2005 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base, ktrace-lwp-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.39: +9 -26 lines
Diff to previous 1.39 (colored)

Use ANSI function delcs.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Apr 1 11:59:37 2005 UTC (14 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.38: +5 -3 lines
Diff to previous 1.38 (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.38 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (14 years, 8 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

nuke trailing whitespace

Revision 1.37 / (download) - annotate - [select for diffs], Tue Mar 23 13:22:04 2004 UTC (15 years, 8 months ago) by junyoung
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Nuke __P().

Revision 1.36 / (download) - annotate - [select for diffs], Sun Oct 26 10:32:24 2003 UTC (16 years ago) by jdolecek
Branch: MAIN
Changes since 1.35: +22 -12 lines
Diff to previous 1.35 (colored)

allocate virtual memory for SYSV shm, msg and semaphore structures
separately from the bufpages, so that it would be possible to eventually
make their limits changeable in runtime

make static all local variables which do not need to be exported to other
kernel parts

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:35 2003 UTC (16 years, 10 months ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.34: +15 -10 lines
Diff to previous 1.34 (colored)

Merge the nathanw_sa branch.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Mar 5 23:28:58 2002 UTC (17 years, 8 months ago) by nathanw
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, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Changes since 1.33: +19 -18 lines
Diff to previous 1.33 (colored)

Make the debugging printfs compile:
 - printf format checking doesn't like %x for pointers; use %p like we should.
 - LP64 fixes.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:25 2001 UTC (18 years ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, ifpoll-base
Changes since 1.32: +4 -1 lines
Diff to previous 1.32 (colored)

add RCSIDs

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jul 22 16:11:02 2000 UTC (19 years, 4 months ago) by simonb
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, nathanw_sa, kqueue
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored)

Delete a couple of <uvm/uvm_extern.h> includes that were for
<sys/sysctl.h> only.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:37 2000 UTC (19 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

remove include of <vm/vm.h>

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jun 2 16:05:49 2000 UTC (19 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

White space nit in previous.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jun 2 15:53:05 2000 UTC (19 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.28: +8 -6 lines
Diff to previous 1.28 (colored)

Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO",
info and data structures for the relevent SysV IPC types.  The return
structures use fixed-size types and should be compat32 safe.  All
user-visible changes are protected with
	#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)

Make all variable declarations extern in msg.h, sem.h and shm.h and
add relevent variable declarations to sysv_*.c and remove unneeded
header files from those .c files.

Make compat14 SysV IPC conversion functions and sysctl_file() static.

Change the data pointer to "void *" in sysctl_clockrate(),
sysctl_ntptime(), sysctl_file() and sysctl_doeproc().

Revision 1.28 / (download) - annotate - [select for diffs], Wed Apr 12 13:08:26 2000 UTC (19 years, 7 months ago) by simonb
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.27: +1 -20 lines
Diff to previous 1.27 (colored)

Remove bogus "#ifdef EIDRM" checks and warnings that BSD doesn't define
EIDRM - EIDRM was added over two years ago!

Revision 1.27 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:13 2000 UTC (19 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

Get rid of register declarations.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Aug 25 05:05:49 1999 UTC (20 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi
Changes since 1.25: +235 -177 lines
Diff to previous 1.25 (colored)

Overhaul of the SVID IPC facilities, primarily to use the types specified
by the Single UNIX Specification version 2, rather than the SVR2-derived
types.  While I was here, I did a namespace sweep to expose the constants
and strucutures, and structure members described by SUSv2; documentation
updates coming shortly.

Fixes kern/8158.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Apr 21 02:31:50 1999 UTC (20 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

properly test the msgsz as "msgsz - len".  from PR#7386

Revision 1.24 / (download) - annotate - [select for diffs], Wed Oct 21 22:24:28 1998 UTC (21 years, 1 month ago) by tron
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, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc-base, chs-ubc
Branch point for: chs-ubc2
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

No need to get definition of "SYSV..." from "opt_sysv.h" because they
must be set if these files are compiled.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Oct 19 22:19:27 1998 UTC (21 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)


Revision 1.22 / (download) - annotate - [select for diffs], Thu May 7 18:00:49 1998 UTC (21 years, 6 months ago) by kleink
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Various SysV IPC prototype changes.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 13 02:32:42 1996 UTC (23 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

backout previous kprintf change

Revision 1.20 / (download) - annotate - [select for diffs], Thu Oct 10 22:43:21 1996 UTC (23 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.19: +80 -186 lines
Diff to previous 1.19 (colored)

- Use debugging printf - macros instead if #ifdef #endif everywhere
- printf -> kprintf, sprintf -> ksprintf

Revision 1.19 / (download) - annotate - [select for diffs], Fri Feb 9 19:00:18 1996 UTC (23 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.18: +1 -3 lines
Diff to previous 1.18 (colored)

More proto fixes

Revision 1.18 / (download) - annotate - [select for diffs], Sun Feb 4 02:17:02 1996 UTC (23 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.17: +14 -8 lines
Diff to previous 1.17 (colored)

First pass at prototyping

Revision 1.17 / (download) - annotate - [select for diffs], Sat Oct 7 06:28:40 1995 UTC (24 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.16: +9 -9 lines
Diff to previous 1.16 (colored)

Prefix names of system call implementation functions with `sys_'.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Sep 19 21:45:17 1995 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +21 -17 lines
Diff to previous 1.15 (colored)

Make system calls conform to a standard prototype and bring those
prototypes into scope.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jun 24 20:34:11 1995 UTC (24 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.14: +1 -72 lines
Diff to previous 1.14 (colored)

Extracted all of the compat_xxx routines, and created a library [libcompat]
for them. There are a few #ifdef COMPAT_XX remaining, but they are not easy
or worth eliminating (yet).

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jun 5 12:56:54 1995 UTC (24 years, 5 months ago) by pk
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

We need some compat_10 routines if COMPAT_SUNOS is on (PR #1008).

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 19 23:44:56 1995 UTC (24 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Use %p.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 5 06:53:13 1994 UTC (24 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +5 -7 lines
Diff to previous 1.11 (colored)

Minor style cleanup.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Oct 23 23:11:27 1994 UTC (25 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.10: +18 -18 lines
Diff to previous 1.10 (colored)

fix for numerous cut & paste errors in the last changes, from Christos.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Oct 20 04:23:15 1994 UTC (25 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.9: +119 -77 lines
Diff to previous 1.9 (colored)

update for new syscall args description mechanism

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 29 06:33:13 1994 UTC (25 years, 4 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 25 08:17:01 1994 UTC (25 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Fix typo.

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 25 08:15:47 1994 UTC (25 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +5 -11 lines
Diff to previous 1.6 (colored)

Generalize ipcperm() a little.

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 25 02:14:33 1994 UTC (25 years, 6 months ago) by hpeyerl
Branch: MAIN
Changes since 1.5: +5 -6 lines
Diff to previous 1.5 (colored)

sysv_shm.c from Adam.
sysv_ipc.c from me.
and various sundry changes to make sysv_ipc.c fit in.
(somewhat untested and not very pleasant reading material)

Revision 1.5 / (download) - annotate - [select for diffs], Tue Feb 15 13:35:53 1994 UTC (25 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +51 -73 lines
Diff to previous 1.4 (colored)

Some more cleanup.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Feb 13 11:32:46 1994 UTC (25 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Fix typo.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 13 09:36:09 1994 UTC (25 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +698 -709 lines
Diff to previous 1.2 (colored)

Format police.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 18 04:21:52 1993 UTC (25 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +6 -6 lines
Diff to previous 1.1 (colored)

Canonicalize all #includes.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Nov 14 13:23:00 1993 UTC (26 years ago) by cgd
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum

Add the System V message queue and semaphore facilities.  Implemented
by Daniel Boulet <>

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>