The NetBSD Project

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

[BACK] Up to [cvs.netbsd.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.127.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:28 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.127: +2 -2 lines
Diff to previous 1.127 (colored) next main 1.128 (colored)

sync with head

Revision 1.127.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:33 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.127: +4 -4 lines
Diff to previous 1.127 (colored) next main 1.128 (colored)

merge to -current.

Revision 1.128 / (download) - annotate - [select for diffs], Wed Jan 25 00:28:36 2012 UTC (4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, HEAD
Changes since 1.127: +4 -4 lines
Diff to previous 1.127 (colored)

As discussed in tech-kern, provide the means to prevent delivery of SIGPIPE
on EPIPE for all file descriptor types:

- provide O_NOSIGPIPE for open,kqueue1,pipe2,dup3,fcntl(F_{G,S}ETFL) [NetBSD]
- provide SOCK_NOSIGPIPE for socket,socketpair [NetBSD]
- provide SO_NOSIGPIPE for {g,s}seckopt [NetBSD/FreeBSD/MacOSX]
- provide F_{G,S}ETNOSIGPIPE for fcntl [MacOSX]

Revision 1.127 / (download) - annotate - [select for diffs], Wed Jul 27 14:35:34 2011 UTC (9 months, 4 weeks ago) by uebayasi
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.126: +2 -4 lines
Diff to previous 1.126 (colored)

These don't need uvm/uvm_extern.h.

Revision 1.124.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:36 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.124: +42 -19 lines
Diff to previous 1.124 (colored) next main 1.125 (colored)

Sync with HEAD.

Revision 1.124.4.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:09 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.124.4.1: +1 -9 lines
Diff to previous 1.124.4.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)

sync with head

Revision 1.126 / (download) - annotate - [select for diffs], Sun Apr 10 15:45:33 2011 UTC (13 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.125: +3 -11 lines
Diff to previous 1.125 (colored)

- Add O_CLOEXEC to open(2)
- Add fd_set_exclose() to encapsulate uses of FIO{,N}CLEX, O_CLOEXEC, F{G,S}ETFD
- Add a pipe1() function to allow passing flags to the fd's that pipe(2)
  opens to ease implementation of linux pipe2(2)
- Factor out fp handling code from open(2) and fhopen(2)

Revision 1.124.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:21 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.124: +41 -10 lines
Diff to previous 1.124 (colored)

sync with head

Revision 1.125 / (download) - annotate - [select for diffs], Tue Jan 18 19:52:23 2011 UTC (16 months ago) by matt
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.124: +41 -10 lines
Diff to previous 1.124 (colored)

Make struct disklabel 8 byte aligned.  This increases its size by 4 bytes
on IPL32 platforms so add code in sys_ioctl (and netbsd32_ioctl) to deal
with the older/smaller diskabel size.  This change makes disklabel the
same for both IPL32 and LP64 platforms.

Revision 1.120.12.1.2.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:17 2010 UTC (2 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.120.12.1: +2 -2 lines
Diff to previous 1.120.12.1 (colored) next main 1.121 (colored)

sync to netbsd-5

Revision 1.118.2.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:17 2009 UTC (2 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.118.2.3: +34 -25 lines
Diff to previous 1.118.2.3 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored)

sync with head.

Revision 1.124 / (download) - annotate - [select for diffs], Thu Aug 13 08:57:43 2009 UTC (2 years, 9 months ago) by haad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, 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, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jruoho-x86intr-base
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.123: +34 -25 lines
Diff to previous 1.123 (colored)

Allow undescribed, direct ioctls as used by Unix. This capability was removed in BSD, presumably because nothing used it any more.
Third party system software written for Unix (like ZFS) requires this to work without significant modifications.

Ok supremeleader@

Revision 1.120.10.1 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:35 2009 UTC (2 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.120: +11 -12 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Sync with HEAD.

Revision 1.118.2.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:31 2009 UTC (2 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.118.2.2: +11 -12 lines
Diff to previous 1.118.2.2 (colored) to branchpoint 1.118 (colored)

sync with head

Revision 1.120.6.1 / (download) - annotate - [select for diffs], Wed Jun 17 20:49:00 2009 UTC (2 years, 11 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.120: +10 -11 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Pull up following revision(s) (requested by rmind in ticket #811):
	sys/kern/sys_generic.c: revision 1.122 via patch
Updates to f_flag need to be made with atomics.

Revision 1.120.12.1 / (download) - annotate - [select for diffs], Wed Jun 17 20:48:57 2009 UTC (2 years, 11 months ago) by bouyer
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.120: +10 -11 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Pull up following revision(s) (requested by rmind in ticket #811):
	sys/kern/sys_generic.c: revision 1.122 via patch
Updates to f_flag need to be made with atomics.

Revision 1.123 / (download) - annotate - [select for diffs], Sun May 24 21:41:26 2009 UTC (3 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored)

More changes to improve kern_descrip.c.

- Avoid atomics in more places.
- Remove the per-descriptor mutex, and just use filedesc_t::fd_lock.
  It was only being used to synchronize close, and in any case we needed
  to take fd_lock to free the descriptor slot.
- Optimize certain paths for the <NDFDFILE case.
- Sprinkle more comments and assertions.
- Cache more stuff in filedesc_t.
- Fix numerous minor bugs spotted along the way.
- Restructure how the open files array is maintained, for clarity and so
  that we can eliminate the membar_consumer() call in fd_getfile().  This is
  mostly syntactic sugar; the main functional change is that fd_nfiles now
  lives alongside the open file array.

Some measurements with libmicro:

- simple file syscalls are like close() are between 1 to 10% faster.
- some nice improvements, e.g. poll(1000) which is ~50% faster.

Revision 1.122 / (download) - annotate - [select for diffs], Sun May 17 10:08:38 2009 UTC (3 years ago) by ad
Branch: MAIN
Changes since 1.121: +10 -11 lines
Diff to previous 1.121 (colored)

Updates to f_flag need to be made with atomics.

Revision 1.121 / (download) - annotate - [select for diffs], Sun May 17 05:54:42 2009 UTC (3 years ago) by yamt
Branch: MAIN
Changes since 1.120: +6 -6 lines
Diff to previous 1.120 (colored)

remove FILE_LOCK and FILE_UNLOCK.

Revision 1.118.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:48 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.118.2.1: +5 -5 lines
Diff to previous 1.118.2.1 (colored) to branchpoint 1.118 (colored)

sync with head.

Revision 1.119.2.3 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:43 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.119.2.2: +5 -5 lines
Diff to previous 1.119.2.2 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.119.4.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:12 2008 UTC (3 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.119: +5 -5 lines
Diff to previous 1.119 (colored) next main 1.120 (colored)

Sync with head.

Revision 1.111.6.3 / (download) - annotate - [select for diffs], Wed Jul 2 19:08:20 2008 UTC (3 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.111.6.2: +3 -3 lines
Diff to previous 1.111.6.2 (colored) to branchpoint 1.111 (colored) next main 1.112 (colored)

Sync with HEAD.

Revision 1.120 / (download) - annotate - [select for diffs], Wed Jul 2 16:45:20 2008 UTC (3 years, 10 months ago) by matt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2, jym-xensuspend-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: netbsd-5-0, netbsd-5, jym-xensuspend
Changes since 1.119: +5 -5 lines
Diff to previous 1.119 (colored)

Change {ff,fd}_exclose and ff_allocated to bool.  Change exclose arg to
fd_dup to bool.  Switch assignments from 1/0 to true/false.

This make alpha kernels compile.  Bump kern to 4.99.69 since structure
changed.

Revision 1.111.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:11 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.111.6.1: +4 -11 lines
Diff to previous 1.111.6.1 (colored) to branchpoint 1.111 (colored)

Sync with HEAD.

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:10 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.117: +6 -13 lines
Diff to previous 1.117 (colored) next main 1.118 (colored)

sync with head.

Revision 1.118.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:27 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.118: +2 -9 lines
Diff to previous 1.118 (colored)

sync with head.

Revision 1.119.2.2 / (download) - annotate - [select for diffs], Wed May 14 01:35:13 2008 UTC (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.119.2.1: +2 -3 lines
Diff to previous 1.119.2.1 (colored) to branchpoint 1.119 (colored)

Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.

Revision 1.119.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:49:05 2008 UTC (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.119: +3 -2 lines
Diff to previous 1.119 (colored)

Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.

Revision 1.119 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:04 2008 UTC (4 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.118: +2 -9 lines
Diff to previous 1.118 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.118 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:29 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.117: +6 -6 lines
Diff to previous 1.117 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.111.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:04 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.111: +33 -612 lines
Diff to previous 1.111 (colored)

Sync with HEAD.

Revision 1.83.2.9 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:02 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.83.2.8: +32 -604 lines
Diff to previous 1.83.2.8 (colored) to branchpoint 1.83 (colored) next main 1.84 (colored)

sync with head.

Revision 1.111.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:14 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.111: +6 -13 lines
Diff to previous 1.111 (colored) next main 1.112 (colored)

sync with head.

Revision 1.117 / (download) - annotate - [select for diffs], Sun Mar 23 14:02:49 2008 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.116: +2 -747 lines
Diff to previous 1.116 (colored)

Split select/poll into their own file.

Revision 1.105.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:00 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.105.2.2: +6 -13 lines
Diff to previous 1.105.2.2 (colored) next main 1.106 (colored)

sync with HEAD

Revision 1.116 / (download) - annotate - [select for diffs], Sat Mar 22 18:04:42 2008 UTC (4 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.115: +284 -74 lines
Diff to previous 1.115 (colored)

Commit the "per-CPU" select patch. This is the result of much work and
testing by rmind@ and myself.

Which approach to use is still being discussed, but I would like to get
this out of my working tree. If we decide to use a different approach
there is no problem with revisiting this.

Revision 1.115 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (4 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.114: +45 -82 lines
Diff to previous 1.114 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.114 / (download) - annotate - [select for diffs], Mon Mar 17 18:01:44 2008 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

Add a boolean parameter to syncobj_t::sobj_unsleep. If true we want the
existing behaviour: the unsleep method unlocks and wakes the swapper if
needs be. If false, the caller is doing a batch operation and will take
care of that later. This is kind of ugly, but it's difficult for the caller
to know which lock to release in some situations.

Revision 1.83.2.8 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:34 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.83.2.7: +5 -12 lines
Diff to previous 1.83.2.7 (colored) to branchpoint 1.83 (colored)

sync with head.

Revision 1.113 / (download) - annotate - [select for diffs], Wed Mar 5 18:09:58 2008 UTC (4 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.112: +4 -5 lines
Diff to previous 1.112 (colored)

selclear() while exiting netsmb's custom copy of select(). PR kern/38123.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Mar 1 14:16:51 2008 UTC (4 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.111: +3 -9 lines
Diff to previous 1.111 (colored)

Welcome to 4.99.55:

- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>

Revision 1.108.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:47 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.108.4.2: +10 -10 lines
Diff to previous 1.108.4.2 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored)

Sync with HEAD.

Revision 1.83.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:22 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.83.2.6: +37 -37 lines
Diff to previous 1.83.2.6 (colored) to branchpoint 1.83 (colored)

sync with head

Revision 1.105.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:21 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.105.2.1: +38 -38 lines
Diff to previous 1.105.2.1 (colored)

sync with HEAD

Revision 1.109.4.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:42 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.109.4.1: +8 -8 lines
Diff to previous 1.109.4.1 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)

Sync with HEAD

Revision 1.111 / (download) - annotate - [select for diffs], Sat Jan 5 19:08:48 2008 UTC (4 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.110: +10 -10 lines
Diff to previous 1.110 (colored)

Use FILE_LOCK() and FILE_UNLOCK()

Revision 1.109.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:12 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.109: +29 -29 lines
Diff to previous 1.109 (colored)

Sync with HEAD

Revision 1.108.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:09 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.108.4.1: +29 -29 lines
Diff to previous 1.108.4.1 (colored) to branchpoint 1.108 (colored)

Sync with HEAD.

Revision 1.108.6.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:43 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.108.6.1: +29 -29 lines
Diff to previous 1.108.6.1 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored)

Sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:10 2007 UTC (4 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.109: +29 -29 lines
Diff to previous 1.109 (colored)

Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    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.103.6.5 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:25 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103.6.4: +3 -3 lines
Diff to previous 1.103.6.4 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

Sync with HEAD.

Revision 1.108.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:38 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

Sync with HEAD.

Revision 1.108.6.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:47 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

Sync with head.

Revision 1.83.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:33:10 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.83.2.5: +3 -3 lines
Diff to previous 1.83.2.5 (colored) to branchpoint 1.83 (colored)

sync with head

Revision 1.109 / (download) - annotate - [select for diffs], Wed Dec 5 07:06:55 2007 UTC (4 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:24 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.105: +74 -65 lines
Diff to previous 1.105 (colored)

sync with HEAD

Revision 1.83.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:35 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.83.2.4: +74 -65 lines
Diff to previous 1.83.2.4 (colored) to branchpoint 1.83 (colored)

sync with head.

Revision 1.103.6.4 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:42 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.103.6.3: +42 -71 lines
Diff to previous 1.103.6.3 (colored) to branchpoint 1.103 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.106.2.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:46 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.106.2.1: +42 -71 lines
Diff to previous 1.106.2.1 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored)

sync with head.

Revision 1.100.2.14 / (download) - annotate - [select for diffs], Tue Oct 9 15:22:22 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.100.2.13: +4 -4 lines
Diff to previous 1.100.2.13 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

Sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Mon Oct 8 15:12:08 2007 UTC (4 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking2-base1, vmlocking-nbase, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs
Changes since 1.107: +42 -71 lines
Diff to previous 1.107 (colored)

Merge file descriptor locking, cwdi locking and cross-call changes
from the vmlocking branch.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:45 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.106: +34 -2 lines
Diff to previous 1.106 (colored)

sync with head.

Revision 1.100.2.13 / (download) - annotate - [select for diffs], Wed Oct 3 19:11:15 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.100.2.12: +29 -60 lines
Diff to previous 1.100.2.12 (colored) to branchpoint 1.100 (colored)

- Don't do proc_vmspace_getref() in dofileread() and friends. They only
  ever access the caller's vmspace so it's not going to go away. Instead
  just use curproc->p_vmspace. Fixes high lock contention during file I/O
  by multithreaded processes. Don't pass in lwp_t *l, it's confusing.

- Drain cleaned vnodes from mountpoints just before checking to see
  if there are danglers. Cleaned vnodes now stick around on mountpoint
  lists until reused, as it's too expensive to pull them off earlier.

Revision 1.103.6.3 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:03 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.103.6.2: +50 -12 lines
Diff to previous 1.103.6.2 (colored) to branchpoint 1.103 (colored)

Sync with HEAD.

Revision 1.107 / (download) - annotate - [select for diffs], Tue Sep 25 13:53:11 2007 UTC (4 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.106: +34 -2 lines
Diff to previous 1.106 (colored)

Add selinit() / seldestroy() from the vmlocking branch.

Revision 1.100.2.12 / (download) - annotate - [select for diffs], Tue Sep 25 13:51:01 2007 UTC (4 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.100.2.11: +5 -3 lines
Diff to previous 1.100.2.11 (colored) to branchpoint 1.100 (colored)

Update a comment.

Revision 1.97.4.1 / (download) - annotate - [select for diffs], Sun Sep 23 21:36:33 2007 UTC (4 years, 8 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.97: +10 -6 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

Sync with somewhat-recent netbsd-4.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Tue Sep 11 09:58:24 2007 UTC (4 years, 8 months ago) by xtraeme
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.97: +10 -6 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

Pull up following revision(s) (requested by rmind in ticket #869):
	sys/kern/sys_generic.c: revision 1.106 via patch

Fix various possible dereferences via uvmspace_free() of non-initialized *vm.
Also, error case might happen before proc_vmspace_getref() (hi <ad>!).
Thanks CID 4551 and 4552. This is serious, pullup will be requested.
OK by <wrstuden>.

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Mon Sep 10 10:56:01 2007 UTC (4 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.103.2.1: +18 -12 lines
Diff to previous 1.103.2.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

Sync with HEAD.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Sep 6 04:00:44 2007 UTC (4 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Changes since 1.105: +18 -12 lines
Diff to previous 1.105 (colored)

Fix various possible dereferences via uvmspace_free() of non-initialized *vm.
Also, error case might happen before proc_vmspace_getref() (hi <ad>!).
Thanks CID 4551 and 4552. This is serious, pullup will be requested.

OK by <wrstuden>.

Revision 1.103.6.2 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:50 2007 UTC (4 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103.6.1: +4 -4 lines
Diff to previous 1.103.6.1 (colored) to branchpoint 1.103 (colored)

Sync with HEAD.

Revision 1.83.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:08 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.83.2.3: +385 -347 lines
Diff to previous 1.83.2.3 (colored) to branchpoint 1.83 (colored)

sync with head.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:03 2007 UTC (4 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.103: +13 -64 lines
Diff to previous 1.103 (colored)

Sync with HEAD.

Revision 1.100.2.11 / (download) - annotate - [select for diffs], Thu Aug 30 13:10:37 2007 UTC (4 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.100.2.10: +32 -2 lines
Diff to previous 1.100.2.10 (colored) to branchpoint 1.100 (colored)

Add selinit() and seldestroy(), and use with pipes. Occasionally an LWP
can still be waiting on a object after it has been destroyed.

Revision 1.105 / (download) - annotate - [select for diffs], Mon Aug 27 16:23:16 2007 UTC (4 years, 8 months ago) by dsl
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.104: +4 -4 lines
Diff to previous 1.104 (colored)

Only ktrace the part of the buffer actually read/written.

Revision 1.100.2.10 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:39 2007 UTC (4 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.100.2.9: +13 -64 lines
Diff to previous 1.100.2.9 (colored) to branchpoint 1.100 (colored)

Sync with HEAD.

Revision 1.103.6.1 / (download) - annotate - [select for diffs], Thu Aug 16 11:03:38 2007 UTC (4 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.103: +13 -64 lines
Diff to previous 1.103 (colored)

Sync with HEAD.

Revision 1.104 / (download) - annotate - [select for diffs], Wed Aug 15 12:07:34 2007 UTC (4 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.103: +13 -64 lines
Diff to previous 1.103 (colored)

Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.

Revision 1.100.2.9 / (download) - annotate - [select for diffs], Sun Jul 15 15:52:56 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.100.2.8: +142 -143 lines
Diff to previous 1.100.2.8 (colored) to branchpoint 1.100 (colored)

Sync with head.

Revision 1.100.2.8 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:45 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.100.2.7: +42 -2 lines
Diff to previous 1.100.2.7 (colored) to branchpoint 1.100 (colored)

Sync with head.

Revision 1.100.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:09 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.100: +376 -287 lines
Diff to previous 1.100 (colored) next main 1.101 (colored)

Sync with head.

Revision 1.103 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:56 2007 UTC (4 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.102: +245 -179 lines
Diff to previous 1.102 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jun 16 20:48:03 2007 UTC (4 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.101: +132 -103 lines
Diff to previous 1.101 (colored)

Move the point at which sys_readv and sys_preadv (and writev) get merged
so that the same common code can be used with a kernel-resident 'iov'
array from the 32-bit compat code (which currently has its own copy
of these routines.

Revision 1.100.2.7 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:06 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.100.2.6: +8 -14 lines
Diff to previous 1.100.2.6 (colored) to branchpoint 1.100 (colored)

Sync with head.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Jun 2 13:38:31 2007 UTC (4 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.100: +8 -14 lines
Diff to previous 1.100 (colored)

Instead of unconditionally initialising the ktriov and conditionally
copying in aiov, just unconditionally copy in aiov.
Probably saves a mispredicted branch and a data cache miss - as well as
removing some code.

Revision 1.100.2.6 / (download) - annotate - [select for diffs], Sat Apr 28 22:40:04 2007 UTC (5 years ago) by ad
Branch: vmlocking
Changes since 1.100.2.5: +110 -66 lines
Diff to previous 1.100.2.5 (colored) to branchpoint 1.100 (colored)

select/poll:

- Don't try to awaken LWPs more than once. Prevents unnecessary locking.
- Tidy slightly.

Revision 1.100.2.5 / (download) - annotate - [select for diffs], Fri Apr 13 15:49:48 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.100.2.4: +10 -2 lines
Diff to previous 1.100.2.4 (colored) to branchpoint 1.100 (colored)

- Fix a (new) bug where vget tries to acquire freed vnodes' interlocks.
- Minor locking fixes.

Revision 1.100.2.4 / (download) - annotate - [select for diffs], Tue Apr 10 12:06:06 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.100.2.3: +10 -22 lines
Diff to previous 1.100.2.3 (colored) to branchpoint 1.100 (colored)

Tidy slightly.

Revision 1.100.2.3 / (download) - annotate - [select for diffs], Tue Apr 10 00:22:12 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.100.2.2: +128 -104 lines
Diff to previous 1.100.2.2 (colored) to branchpoint 1.100 (colored)

Changes to select/poll:

- Make them MP safe and decouple from the proc locks.
- selwakeup: don't call p_find, or traverse per-proc LWP lists (ouch).
- selwakeup: don't lock the sleep queue unless we need to.

Revision 1.100.2.2 / (download) - annotate - [select for diffs], Fri Mar 23 18:49:09 2007 UTC (5 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.100.2.1: +8 -11 lines
Diff to previous 1.100.2.1 (colored) to branchpoint 1.100 (colored)

Don't kmem_free() kernel stack.

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Wed Mar 21 20:11:52 2007 UTC (5 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.100: +29 -26 lines
Diff to previous 1.100 (colored)

- Replace more simple_locks, and fix up in a few places.
- Use condition variables.
- LOCK_ASSERT -> KASSERT.

Revision 1.98.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:41 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.98.2.1: +18 -18 lines
Diff to previous 1.98.2.1 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored)

Sync with HEAD.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:09 2007 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.99: +18 -18 lines
Diff to previous 1.99 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:30 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.98: +12 -12 lines
Diff to previous 1.98 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.83.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:16 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.83.2.2: +83 -38 lines
Diff to previous 1.83.2.2 (colored) to branchpoint 1.83 (colored)

sync with head.

Revision 1.99 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:44 2007 UTC (5 years, 3 months ago) by pavel
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.98: +12 -12 lines
Diff to previous 1.98 (colored)

Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.

Revision 1.98 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (5 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.97: +74 -29 lines
Diff to previous 1.97 (colored)

Merge newlock2 to head.

Revision 1.92.2.7 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:38 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.92.2.6: +2 -10 lines
Diff to previous 1.92.2.6 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored)

Sync with head.

Revision 1.92.2.6 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:41 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.92.2.5: +11 -12 lines
Diff to previous 1.92.2.5 (colored) to branchpoint 1.92 (colored)

Remove support for SA. Ok core@.

Revision 1.92.2.5 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:07 2007 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.92.2.4: +2 -2 lines
Diff to previous 1.92.2.4 (colored) to branchpoint 1.92 (colored)

Sync with head.

Revision 1.83.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:06 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.83.2.1: +47 -26 lines
Diff to previous 1.83.2.1 (colored) to branchpoint 1.83 (colored)

sync with head.

Revision 1.92.2.4 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:44 2006 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.92.2.3: +51 -22 lines
Diff to previous 1.92.2.3 (colored) to branchpoint 1.92 (colored)

Checkpoint work in progress.

Revision 1.92.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:45 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.92.4.1: +12 -10 lines
Diff to previous 1.92.4.1 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored)

sync with head.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Nov 20 15:16:22 2006 UTC (5 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RC1
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.96: +10 -8 lines
Diff to previous 1.96 (colored)

selcommon(), pollcommon(): restore the correct signal mask on failure.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:59 2006 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.95: +4 -4 lines
Diff to previous 1.95 (colored)

remove some __unused from function parameters.

Revision 1.92.2.3 / (download) - annotate - [select for diffs], Tue Oct 24 21:44:31 2006 UTC (5 years, 7 months ago) by ad
Branch: newlock2
Changes since 1.92.2.2: +10 -7 lines
Diff to previous 1.92.2.2 (colored) to branchpoint 1.92 (colored)

Fix a locking botch.

Revision 1.92.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:11 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored)

sync with head

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Sat Oct 21 15:20:47 2006 UTC (5 years, 7 months ago) by ad
Branch: newlock2
Changes since 1.92.2.1: +39 -23 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored)

Checkpoint work in progress on locking and per-LWP signals. Very much a
a work in progress and there is still a lot to do.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Oct 17 18:21:29 2006 UTC (5 years, 7 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.94: +2 -10 lines
Diff to previous 1.94 (colored)

now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Oct 13 16:53:36 2006 UTC (5 years, 7 months ago) by dogcow
Branch: MAIN
Changes since 1.93: +10 -2 lines
Diff to previous 1.93 (colored)

More -Wunused fallout. sprinkle __unused when possible; otherwise, use the
	do { if (&x) {} } while (/* CONSTCOND */ 0);
construct as suggested by uwe in <20061012224845.GA9449@snark.ptc.spbu.ru>.

Revision 1.93 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:18 2006 UTC (5 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored)

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

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Mon Sep 11 18:43:43 2006 UTC (5 years, 8 months ago) by ad
Branch: newlock2
Changes since 1.92: +11 -3 lines
Diff to previous 1.92 (colored)

Grab proclist_mutex in a few more places.

Revision 1.84.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:16 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.84: +80 -51 lines
Diff to previous 1.84 (colored) next main 1.85 (colored)

sync with head

Revision 1.85.2.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.85.2.2: +4 -4 lines
Diff to previous 1.85.2.2 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored)

sync with head.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Sep 3 06:34:34 2006 UTC (5 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.91: +4 -4 lines
Diff to previous 1.91 (colored)

use c99 initializers

Revision 1.85.2.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:46 2006 UTC (5 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.85.2.1: +39 -20 lines
Diff to previous 1.85.2.1 (colored) to branchpoint 1.85 (colored)

sync with head

Revision 1.91 / (download) - annotate - [select for diffs], Fri Jul 14 22:33:27 2006 UTC (5 years, 10 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.90: +4 -4 lines
Diff to previous 1.90 (colored)

make inittimeleft() and gettimeleft() available (for e. g. kern_event.c)

Revision 1.90 / (download) - annotate - [select for diffs], Fri Jul 14 16:02:45 2006 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.89: +39 -51 lines
Diff to previous 1.89 (colored)

factor out common code.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Jul 14 15:52:44 2006 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.88: +28 -13 lines
Diff to previous 1.88 (colored)

- rename sleepts to sleeptv since it is a timeval.
- don't initialize it needlessly.
- fix the poll code the same way the select code was fixed, so that it
  computes the remaining time to sleep properly.

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:51 2006 UTC (5 years, 10 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.86: +21 -5 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Merge from HEAD.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Jul 8 16:01:25 2006 UTC (5 years, 10 months ago) by kardel
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

when adjusting the left over timeout value in selcommon()
do actually subtract the elapsed time instead of adding it.

Revision 1.87 / (download) - annotate - [select for diffs], Sat Jul 8 12:16:09 2006 UTC (5 years, 10 months ago) by kardel
Branch: MAIN
Changes since 1.86: +21 -5 lines
Diff to previous 1.86 (colored)

fix a bug reported by Steven M. Bellovin regarding oversleeping
select(2) timeouts. Introduced via timecounter branch from a
tvtohz() conversion.
The left over timeout was not decremented when re-starting
the sleep in select.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:57 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.85: +13 -23 lines
Diff to previous 1.85 (colored)

sync with head.

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:38 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.83: +105 -85 lines
Diff to previous 1.83 (colored)

sync with head.

Revision 1.85.8.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:16 2006 UTC (5 years, 11 months ago) by chap
Branch: chap-midi
Changes since 1.85: +13 -23 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

Sync with head.

Revision 1.86 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:40 2006 UTC (5 years, 11 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, chap-midi-nbase, chap-midi-base
Branch point for: gdamore-uart
Changes since 1.85: +13 -23 lines
Diff to previous 1.85 (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,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.84.6.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:59 2006 UTC (6 years, 1 month ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.84.6.1: +34 -14 lines
Diff to previous 1.84.6.1 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

Sync with head.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:21 2006 UTC (6 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, chap-midi
Changes since 1.84: +34 -14 lines
Diff to previous 1.84 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.84.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:30:17 2006 UTC (6 years, 3 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.84: +13 -23 lines
Diff to previous 1.84 (colored)

Adapt for timecounters: mostly use get*time() and use "time_second"
instead of "time.tv_sec".

Revision 1.84.2.1 / (download) - annotate - [select for diffs], Sat Dec 31 11:14:01 2005 UTC (6 years, 4 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.84: +34 -14 lines
Diff to previous 1.84 (colored) next main 1.85 (colored)

uio_segflg/uio_lwp -> uio_vmspace.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:30 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.83: +66 -56 lines
Diff to previous 1.83 (colored)

merge ktrace-lwp.

Revision 1.76.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (6 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.5: +3 -3 lines
Diff to previous 1.76.2.5 (colored) next main 1.77 (colored)

Sync with HEAD. Here we go again...

Revision 1.83 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (6 years, 11 months ago) by christos
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, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.

Revision 1.81.8.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:24 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.81: +149 -42 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

sync with -current

Revision 1.81.10.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.81: +149 -42 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.76.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:00 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.4: +149 -42 lines
Diff to previous 1.76.2.4 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.82 / (download) - annotate - [select for diffs], Fri Feb 25 19:56:07 2005 UTC (7 years, 3 months ago) by matt
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, kent-audio2-base
Changes since 1.81: +149 -42 lines
Diff to previous 1.81 (colored)

Add the code for pselect and pollts.  Add selcommon and pollcommon to
<sys/select.h> and <sys/poll.h>.

Revision 1.76.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:12 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.3: +66 -56 lines
Diff to previous 1.76.2.3 (colored)

Fix the sync with head I botched.

Revision 1.76.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:03 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.2: +56 -66 lines
Diff to previous 1.76.2.2 (colored)

Sync with HEAD.

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:55 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.76.2.1: +15 -52 lines
Diff to previous 1.76.2.1 (colored)

Sync with HEAD

Revision 1.81 / (download) - annotate - [select for diffs], Tue Mar 23 13:22:04 2004 UTC (8 years, 2 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, matt-timespec, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored)

Nuke __P().

Revision 1.80 / (download) - annotate - [select for diffs], Fri Oct 10 15:24:28 2003 UTC (8 years, 7 months ago) by chs
Branch: MAIN
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

use "poll" as the wmesg for poll.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Sep 21 19:17:05 2003 UTC (8 years, 8 months ago) by jdolecek
Branch: MAIN
Changes since 1.78: +6 -39 lines
Diff to previous 1.78 (colored)

cleanup & uniform descriptor owner handling:
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
  the owner of descriptor, according to appropriate sematics
  of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use
  these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
  properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
  in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
  pass the ioctls down to soo_ioctl() as any other ioctl

change discussed on tech-kern@

Revision 1.78 / (download) - annotate - [select for diffs], Tue Sep 16 15:55:26 2003 UTC (8 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.77: +7 -7 lines
Diff to previous 1.77 (colored)

Take into account the possibility that the ktrace flags can change
during a read(v)/write(v). If that happeded, we either passed a NULL
pointer or a pointer to something uninitialized as iov to ktrace,
or we got a memory leak. In read/write (w/o -v) we zero-initialize
the iov now to limit damage, in the -v calls the (dynamically allocated)
pointer is checked after the I/O.

Revision 1.77 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:54 2003 UTC (8 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.76: +3 -7 lines
Diff to previous 1.76 (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.76.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:40 2003 UTC (8 years, 10 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.76: +70 -60 lines
Diff to previous 1.76 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:25 2003 UTC (8 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.75: +58 -68 lines
Diff to previous 1.75 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:56 2003 UTC (8 years, 11 months ago) by darrenr
Branch: MAIN
Changes since 1.74: +70 -60 lines
Diff to previous 1.74 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.74 / (download) - annotate - [select for diffs], Wed May 28 20:02:59 2003 UTC (9 years ago) by dsl
Branch: MAIN
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored)

Report ioctl read and write the correct way around.

Revision 1.73 / (download) - annotate - [select for diffs], Mon May 12 15:17:37 2003 UTC (9 years ago) by dsl
Branch: MAIN
Changes since 1.72: +27 -11 lines
Diff to previous 1.72 (colored)

ktrace ioctl data buffers
Optimise structure layout for 'struct selinfo' to avoid padding on 64bit
systems.  Use an entire variable for the 'collision' flag for efficiency.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Mar 26 17:50:16 2003 UTC (9 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.71: +3 -4 lines
Diff to previous 1.71 (colored)

switch to LIST_FOREACH() in selrecord()

Revision 1.71 / (download) - annotate - [select for diffs], Sat Mar 22 14:13:06 2003 UTC (9 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.70: +3 -4 lines
Diff to previous 1.70 (colored)

use LIST_FOREACH() in selwakeup() for the process's lwp walk loop

Revision 1.70 / (download) - annotate - [select for diffs], Sun Feb 23 14:37:34 2003 UTC (9 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.69: +14 -6 lines
Diff to previous 1.69 (colored)

Make updating a file's reference and use count MP-safe.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:33 2003 UTC (9 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.68: +59 -30 lines
Diff to previous 1.68 (colored)

Merge the nathanw_sa branch.

Revision 1.54.2.11 / (download) - annotate - [select for diffs], Wed Dec 11 06:43:08 2002 UTC (9 years, 5 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.54.2.10: +19 -17 lines
Diff to previous 1.54.2.10 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

Sync with HEAD.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Nov 30 13:46:58 2002 UTC (9 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.67: +3 -5 lines
Diff to previous 1.67 (colored)

Unfortunately, we can't really know if select collision is needed
until after wakeup event, so we can't clear the SI_COLL flag
in selrecord(). Thus, effectively back rev. 1.57 off.

Problem reported in PR kern/17517 by David Laight, program triggering
the problem is in regress/sys/kern/poll/poll3w.c.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Nov 29 19:48:22 2002 UTC (9 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.66: +4 -2 lines
Diff to previous 1.66 (colored)

selwakeup(): don't bother with pfind() in SI_COLL case; sel_pid is always zero
in this case, and even if not, the process would be already woken up by the
wakeup() call
change sent as part of kern/17517 by David Laight

XXX perhaps should KASSERT() sel_pid is zero in the SI_COLL case

Revision 1.66 / (download) - annotate - [select for diffs], Tue Nov 26 18:44:34 2002 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.65: +12 -12 lines
Diff to previous 1.65 (colored)

si_ -> sel_ to avoid conflicts with siginfo.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Nov 24 11:37:57 2002 UTC (9 years, 6 months ago) by scw
Branch: MAIN
Changes since 1.64: +9 -6 lines
Diff to previous 1.64 (colored)

Quell uninitialised variable warnings.

Revision 1.57.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:07 2002 UTC (9 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.57.2.2: +11 -7 lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

sync kqueue branch with HEAD

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:11 2002 UTC (9 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.62: +11 -7 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

catch up with -current.

Revision 1.54.2.10 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:32 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.54.2.9: +8 -4 lines
Diff to previous 1.54.2.9 (colored) to branchpoint 1.54 (colored)

Catch up to -current.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Aug 25 23:15:21 2002 UTC (9 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gehenna-devsw-base
Changes since 1.63: +10 -6 lines
Diff to previous 1.63 (colored)

Fix some signed/unsigned comparison warnings from GCC 3.3.

Revision 1.54.2.9 / (download) - annotate - [select for diffs], Tue Aug 13 02:20:07 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.54.2.8: +3 -3 lines
Diff to previous 1.54.2.8 (colored) to branchpoint 1.54 (colored)

Catch up to -current.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Aug 8 20:40:25 2002 UTC (9 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

selscan(): make flag[] const

Revision 1.54.2.8 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:21 2002 UTC (9 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.54.2.7: +2 -3 lines
Diff to previous 1.54.2.7 (colored) to branchpoint 1.54 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:35 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.57.2.1: +20 -5 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored)

catch up with -current on kqueue branch

Revision 1.54.2.7 / (download) - annotate - [select for diffs], Wed May 29 21:33:14 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.54.2.6: +3 -2 lines
Diff to previous 1.54.2.6 (colored) to branchpoint 1.54 (colored)

#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)

Revision 1.54.2.6 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:57 2002 UTC (10 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.54.2.5: +20 -5 lines
Diff to previous 1.54.2.5 (colored) to branchpoint 1.54 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.48.4.3 / (download) - annotate - [select for diffs], Thu Mar 28 22:49:02 2002 UTC (10 years, 2 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.48.4.2: +5 -3 lines
Diff to previous 1.48.4.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Pull up revision 1.62 (via patch, requested by jdolecek):
  Make sure file descriptor is properly FILE_UNUSE()d in error case
  of writev.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Mar 22 18:58:59 2002 UTC (10 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: 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
Branch point for: gehenna-devsw
Changes since 1.61: +6 -4 lines
Diff to previous 1.61 (colored)

Make sure file descriptor is properly FILE_UNUSE()d in error case
of writev(2).
Problem found by Alistair G. Crooks.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Mar 17 19:41:07 2002 UTC (10 years, 2 months ago) by atatat
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.60: +16 -3 lines
Diff to previous 1.60 (colored)

Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:00:05 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.57: +9 -4 lines
Diff to previous 1.57 (colored)

Sync kqueue branch with -current.

Revision 1.54.2.5 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:39 2002 UTC (10 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.54.2.4: +5 -3 lines
Diff to previous 1.54.2.4 (colored) to branchpoint 1.54 (colored)

Catch up to -current.

Revision 1.48.4.2 / (download) - annotate - [select for diffs], Mon Dec 24 14:05:28 2001 UTC (10 years, 5 months ago) by he
Branch: netbsd-1-5
Changes since 1.48.4.1: +4 -2 lines
Diff to previous 1.48.4.1 (colored) to branchpoint 1.48 (colored)

Pull up revision 1.60 (requested by skrll):
  Make poll(2) ignore negative file descriptors, which is in line
  with the Single Unix Specification.

Revision 1.54.2.4 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:41 2001 UTC (10 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.54.2.3: +6 -3 lines
Diff to previous 1.54.2.3 (colored) to branchpoint 1.54 (colored)

Catch up to -current.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Nov 14 18:43:58 2001 UTC (10 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, ifpoll
Changes since 1.59: +5 -3 lines
Diff to previous 1.59 (colored)

Make poll(2) ignore negative file descriptors (Bang Jun-Young).

Revision 1.57.6.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:54 2001 UTC (10 years, 6 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.57: +6 -3 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Sync the thorpej-mips-cache branch with -current.

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

add RCSIDs

Revision 1.58 / (download) - annotate - [select for diffs], Tue Oct 30 13:37:21 2001 UTC (10 years, 6 months ago) by itohy
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

Fix memory leak if
 - ktrace enabled for I/O operaion, and
 - readv() causes an error.

Revision 1.57.4.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:37 2001 UTC (10 years, 8 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.54.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:38 2001 UTC (10 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.54.2.2: +12 -3 lines
Diff to previous 1.54.2.2 (colored) to branchpoint 1.54 (colored)

Catch up with -current.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jun 28 05:45:49 2001 UTC (10 years, 11 months ago) by atatat
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, thorpej-devvp, kqueue
Changes since 1.56: +4 -2 lines
Diff to previous 1.56 (colored)

If no select collision is needed, try our best to avoid it by clearing
the flag.

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:07:01 2001 UTC (10 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.54.2.1: +27 -27 lines
Diff to previous 1.54.2.1 (colored) to branchpoint 1.54 (colored)

Catch up to -current.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jun 14 20:32:47 2001 UTC (10 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.55: +25 -26 lines
Diff to previous 1.55 (colored)

Fix a partial construction problem that can cause race conditions
between creation of a file descriptor and close(2) when using kernel
assisted threads.  What we do is stick descriptors in the table, but
mark them as "larval".  This causes essentially everything to treat
it as a non-existent descriptor, except for fdalloc(), which sees a
filled slot so that it won't (incorrectly) allocate it again.  When
a descriptor is fully constructed, the code that has constructed it
marks it as "mature" (which actually clears the "larval" flag), and
things continue to work as normal.

While here, gather all the code that gets a descriptor from the table
into a fd_getfile() function, and call it, rather than having the
same (sometimes incorrect) code copied all over the place.

Revision 1.55 / (download) - annotate - [select for diffs], Thu May 24 06:52:43 2001 UTC (11 years ago) by lukem
Branch: MAIN
Changes since 1.54: +3 -2 lines
Diff to previous 1.54 (colored)

for FIOGETOWN, only change the sign of *data if fo_ioctl returned without error

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:37 2001 UTC (11 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45.2.1: +151 -191 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

Sync with HEAD.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:44 2001 UTC (11 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.54: +52 -29 lines
Diff to previous 1.54 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Feb 27 04:44:51 2001 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored)

oops; accidentally dropped an initialisation in pollscan() in previous.
called poll() to fail in interesting ways. noted by chs/nathanw

Revision 1.53 / (download) - annotate - [select for diffs], Mon Feb 26 22:28:23 2001 UTC (11 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.52: +150 -191 lines
Diff to previous 1.52 (colored)

convert to ANSI KNF

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:09 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45: +63 -69 lines
Diff to previous 1.45 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.52 / (download) - annotate - [select for diffs], Mon Aug 21 06:27:59 2000 UTC (11 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

splsched() is appropriate for select()/poll().

Revision 1.51 / (download) - annotate - [select for diffs], Sun Aug 20 21:50:11 2000 UTC (11 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Add a lock around the scheduler, and use it as necessary, including
in the non-MULTIPROCESSOR case (LOCKDEBUG requires it).  Scheduler
lock is held upon entry to mi_switch() and cpu_switch(), and
cpu_switch() releases the lock before returning.

Largely from Bill Sommerfeld, with some minor bug fixes and
machine-dependent code hacking from me.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Aug 2 20:48:37 2000 UTC (11 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.49: +9 -9 lines
Diff to previous 1.49 (colored)

MALLOC()/FREE() are not to be used for variable sized allocations.

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 01:39:02 2000 UTC (11 years, 10 months ago) by thorpej
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.48: +17 -21 lines
Diff to previous 1.48 (colored)

Pull up rev. 1.49:
When select(2)/poll(2) is awakened by a collision, recalculate the
timeout value for tsleep().  From Artur Grabowski <art@stacken.kth.se>.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jul 13 01:32:33 2000 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.48: +17 -21 lines
Diff to previous 1.48 (colored)

When select(2)/poll(2) is awakened by a collision, recalculate the
timeout value for tsleep().  From Artur Grabowski <art@stacken.kth.se>.

Revision 1.48 / (download) - annotate - [select for diffs], Sat May 27 00:40:47 2000 UTC (12 years ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.47: +5 -7 lines
Diff to previous 1.47 (colored)

Reduce use of curproc in several places:

 - Change ktrace interface to pass in the current process, rather than
p->p_tracep, since the various ktr* function need curproc anyway.

 - Add curproc as a parameter to mi_switch() since all callers had it
handy anyway.

 - Add a second proc argument for inferior() since callers all had
curproc handy.

Also, miscellaneous cleanups in ktrace:

 - ktrace now always uses file-based, rather than vnode-based I/O
(simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD.
Do non-blocking I/O, and yield a finite number of times when receiving
EWOULDBLOCK before giving up.

 - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.

 - simplify interface to ktrwrite()

Revision 1.47 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:13 2000 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.46: +31 -31 lines
Diff to previous 1.46 (colored)

Get rid of register declarations.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Mar 17 00:01:48 2000 UTC (12 years, 2 months ago) by darrenr
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

build stkbuf out of u_long rather than char for sys_ioctl() to ensure we get an aligned array

Revision 1.44.8.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:24:04 1999 UTC (12 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.44: +74 -24 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

Sync w/ -current.

Revision 1.45 / (download) - annotate - [select for diffs], Wed May 5 20:01:09 1999 UTC (13 years 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, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.44: +74 -24 lines
Diff to previous 1.44 (colored)

Add "use counting" to file entries.  When closing a file, and it's reference
count is 0, wait for use count to drain before finishing the close.

This is necessary in order for multiple processes to safely share file
descriptor tables.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:57 1998 UTC (13 years, 9 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.40: +13 -9 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:15 1998 UTC (13 years, 9 months ago) by perry
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.43: +5 -5 lines
Diff to previous 1.43 (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.43 / (download) - annotate - [select for diffs], Mon Aug 3 15:01:00 1998 UTC (13 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

UIO_MAXIOV -> IOV_MAX

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:51 1998 UTC (13 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.41: +5 -5 lines
Diff to previous 1.41 (colored)

fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Jul 31 15:38:58 1998 UTC (13 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.40: +9 -5 lines
Diff to previous 1.40 (colored)

Reject an iovcnt argument of 0 to readv(), writev(), preadv() and pwritev()
as invalid.  This has been stated by the respective manual pages at least
since Net/2, and is the behaviour specified by XSH5.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jul 28 17:58:29 1998 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.39: +31 -7 lines
Diff to previous 1.39 (colored)

When checking for overflow in the residual count, test against SSIZE_MAX.
The read/write system calls return ssize_t because -1 is used to indicate
error, therefore the transfer size MUST be limited to SSIZE_MAX, otherwise
garbage can be returned to the user.

There is NO change from existing behavior here, only a more precise
definition of that the semantics are, except in the Alpha case, where
the full SSIZE_MAX transfer size can now be realized (ssize_t is 64-bit
on the Alpha).

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jun 30 07:39:23 1998 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.38: +98 -36 lines
Diff to previous 1.38 (colored)

Split up read/readv/write/writev into the system call front-end and
the guts that actually perform the I/O request.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jun 30 05:33:12 1998 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.37: +11 -7 lines
Diff to previous 1.37 (colored)

Add two additional arguments to the fileops read and write calls, a
pointer to the offset to use, and a flags word.  Define a flag that
specifies whether or not to update the offset passed by reference.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jun 25 21:17:17 1998 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

defopt KTRACE

Revision 1.36 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:32 1998 UTC (14 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.35: +2 -16 lines
Diff to previous 1.35 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:09 1998 UTC (14 years, 2 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +130 -123 lines
Diff to previous 1.1.1.2 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:46 1998 UTC (14 years, 2 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +683 -1 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Tue Nov 4 21:27:02 1997 UTC (14 years, 6 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: 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
Changes since 1.34: +4 -2 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Pull up from trunk: Fix syscall argument type bogons.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Nov 4 21:24:17 1997 UTC (14 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +4 -2 lines
Diff to previous 1.34 (colored)

Fix slight argument bogosity with getgroups(), setgroups(), select(),
and swapctl().  For the former three, they use an 'int' in their user-land
prototype which was a 'u_int' in the kernel, which screwed up automatic
generation/checking of lint syscall stubs.  For the latter, the user-land
prototype uses a "const char *", but the syscall just used "char *".

From Chris Demetriou <cgd@pa.dec.com>.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Oct 15 17:04:14 1997 UTC (14 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.33: +36 -32 lines
Diff to previous 1.33 (colored)

Adjust u_int arguments of some system calls to int, to match user-level
prototypes.

Revision 1.31.6.1 / (download) - annotate - [select for diffs], Wed Mar 12 21:23:49 1997 UTC (15 years, 2 months ago) by is
Branch: is-newarp
Changes since 1.31: +11 -6 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Merge in changes from Trunk

Revision 1.33 / (download) - annotate - [select for diffs], Sun Feb 23 02:23:07 1997 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, bouyer-scsipi
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

in pollscan, cast incoming fd to unsigned int.  from mycroft.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Feb 18 04:20:54 1997 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.31: +11 -6 lines
Diff to previous 1.31 (colored)

check that fd being poll()ed is valid.  from mycroft.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Dec 22 10:21:12 1996 UTC (15 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-base
Branch point for: is-newarp
Changes since 1.30: +17 -17 lines
Diff to previous 1.30 (colored)

* catch up with system call argument type fixups/const poisoning.
* Fix arguments to various copyin()/copyout() invocations, to avoid
  gratuitous casts.
* Some KNF formatting fixes

Revision 1.24.4.1 / (download) - annotate - [select for diffs], Tue Dec 10 04:33:35 1996 UTC (15 years, 5 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.24: +39 -32 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

From trunk:
Clean up sys_select() a bit, and make it deal with nfds being larger than
the default FD_SETSIZE.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Sep 7 21:47:23 1996 UTC (15 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Use INFTIM, not -1.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Sep 7 14:20:09 1996 UTC (15 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Modify poll(2) prototype.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Sep 7 12:40:59 1996 UTC (15 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +128 -6 lines
Diff to previous 1.27 (colored)

Implement poll(2).

Revision 1.27 / (download) - annotate - [select for diffs], Thu Sep 5 15:32:52 1996 UTC (15 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +12 -14 lines
Diff to previous 1.26 (colored)

Clean up sys_select() slightly.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jun 13 05:08:47 1996 UTC (15 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

in select(), if it's a small number of file descriptors use a
automatic array rather than an array allocated with alloca().
(This was the only use of alloca() in the kernel, and it wasn't
necessary or consistent with the way other functions in this file
work.)

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jun 2 14:48:23 1996 UTC (15 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.24: +30 -22 lines
Diff to previous 1.24 (colored)

Deal with FD_SETSIZE larger than the default.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Mar 29 00:25:32 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

kill unnecessary (and sometimes dangerous) casts of ioctl commands to int

Revision 1.23 / (download) - annotate - [select for diffs], Fri Feb 9 19:00:09 1996 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.22: +1 -3 lines
Diff to previous 1.22 (colored)

More proto fixes

Revision 1.22 / (download) - annotate - [select for diffs], Sun Feb 4 02:16:53 1996 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.21: +36 -10 lines
Diff to previous 1.21 (colored)

First pass at prototyping

Revision 1.21 / (download) - annotate - [select for diffs], Sat Oct 7 06:28:34 1995 UTC (16 years, 7 months 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.20: +13 -13 lines
Diff to previous 1.20 (colored)

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

Revision 1.20 / (download) - annotate - [select for diffs], Tue Sep 19 21:45:13 1995 UTC (16 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +31 -25 lines
Diff to previous 1.19 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Tue Mar 21 13:33:34 1995 UTC (17 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Update to use timer{add,sub}().

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 11 18:06:13 1994 UTC (17 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Use __timer{add,sub}(), not timeval{add,sub}().  Remove the latter completely.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 30 21:47:48 1994 UTC (17 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.16: +5 -4 lines
Diff to previous 1.16 (colored)

be more careful with types, also pull in headers where necessary.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 20 04:23:05 1994 UTC (17 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.15: +100 -97 lines
Diff to previous 1.15 (colored)

update for new syscall args description mechanism

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 29 06:33:05 1994 UTC (17 years, 11 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.14: +689 -1 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Thu May 19 06:39:50 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

update to 4.4-lite

Revision 1.13 / (download) - annotate - [select for diffs], Sat May 7 00:56:46 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12 (colored)

setrun changes name

Revision 1.12 / (download) - annotate - [select for diffs], Thu May 5 05:38:27 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.11: +1 -1 lines
Diff to previous 1.11 (colored)

lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 4 03:42:02 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored)

Rename a lot of process flags.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 16 17:23:03 1994 UTC (18 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored)

read(): return EINVAL if `count' argument is negative.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Dec 18 04:21:34 1993 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored)

Canonicalize all #includes.

Revision 1.8.4.2 / (download) - annotate - [select for diffs], Sun Nov 14 21:07:14 1993 UTC (18 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.8.4.1: +1 -1 lines
Diff to previous 1.8.4.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Canonicalize all #includes.

Revision 1.8.4.1 / (download) - annotate - [select for diffs], Fri Sep 24 08:51:34 1993 UTC (18 years, 8 months ago) by mycroft
Branch: magnum
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored)

Make all files using spl*() #include cpu.h.  Changes from trunk.
init_main.c: New method of pseudo-device of initialization.
kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe.
softclock() only does callouts.
kern_synch.c: Remove spurious declaration of endtsleep().  Adjust uses of
averunnable for new struct loadav.
subr_prf.c: Allow printf() formats in panic().
tty.c: averunnable changes.
vfs_subr.c: va_size and va_bytes are now quads.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jul 15 22:26:11 1993 UTC (18 years, 10 months 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, magnum-base
Branch point for: magnum
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

make args & locals of select unsigned where appropriate.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jul 13 22:13:30 1993 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

break args structs out, into syscallname_args structs, so gcc2 doesn't
whine so much.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 22 01:59:39 1993 UTC (18 years, 11 months ago) by glass
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

more damn ansi function declarations.  damn you chris....

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 14 05:11:58 1993 UTC (18 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

a few changes to select.  most notable: don't sleep forever unless
user actually wants to.  (it could happen in strange circumstances...)

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 13 07:39:32 1993 UTC (18 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

Believe it or not, selrecord() was broken...

Revision 1.3 / (download) - annotate - [select for diffs], Tue May 18 18:19:23 1993 UTC (19 years ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

make kernel select interface be one-stop shopping & clean it all up.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (19 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: WFJ-386bsd-01
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
Branch: MAIN

Initial revision

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 <webmaster@jp.NetBSD.org>