The NetBSD Project

CVS log for src/sys/sys/file.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / sys

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Jul 10 02:31:55 2023 UTC (21 months, 2 weeks ago) by christos
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +6 -2 lines
Add memfd_create(2) from GSoC 2023 by Theodore Preduta

Revision 1.92: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:53:02 2023 UTC (2 years ago) by riastradh
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -1 lines
file(9): New fo_posix_fadvise operation.

XXX kernel revbump -- changes struct fileops API and ABI

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:52:55 2023 UTC (2 years ago) by riastradh
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +4 -1 lines
file(9): New fo_fpathconf operation.

XXX kernel revbump -- struct fileops API and ABI change

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:52:46 2023 UTC (2 years ago) by riastradh
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -1 lines
file(9): New fo_advlock operation.

This moves the vnode-specific logic from sys_descrip.c into
vfs_vnode.c, like we did for fo_seek.

XXX kernel revbump -- struct fileops API and ABI change

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:52:37 2023 UTC (2 years ago) by riastradh
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +5 -5 lines
sys/file.h: Sort forward declarations.

No functional change intended.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun Sep 19 15:51:27 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +8 -2 lines
Add native implementations of eventfd(2) and timerfd(2), compatible with
the Linux interfaces of the same name.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sat Sep 11 10:08:55 2021 UTC (3 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +2 -2 lines
sys/kern: Allow custom fileops to specify fo_seek method.

Previously only vnodes allowed lseek/pread[v]/pwrite[v], which meant
converting a regular device to a cloning device doesn't always work.

Semantics is:

(*fp->f_ops->fo_seek)(fp, delta, whence, newoffp, flags)

1. Compute a new offset according to whence + delta -- that is, if
   whence is SEEK_CUR, add delta to fp->f_offset; if whence is
   SEEK_END, add delta to end of file; if whence is SEEK_CUR, use delta
   as is.

2. If newoffp is nonnull, return the new offset in *newoffp.

3. If flags & FOF_UPDATE_OFFSET, set fp->f_offset to the new offset.

Access to fp->f_offset, and *newoffp if newoffp = &fp->f_offset, must
happen under the object lock (e.g., vnode lock), in order to
synchronize fp->f_offset reads and writes.

This change has the side effect that every call to VOP_SEEK happens
under the vnode lock now, when previously it didn't.  However, from a
review of all the VOP_SEEK implementations, it does not appear that
any file system even examines the vnode, let alone locks it.  So I
think this is safe -- and essentially the only reasonable way to do
things, given that it is used to validate a change from oldoff to
newoff, and oldoff becomes stale the moment we unlock the vnode.

No kernel bump because this reuses a spare entry in struct fileops,
and it is safe for the entry to be null, so all existing fileops will
continue to work as before (rejecting seek).

Revision 1.86.2.2: download - view: text, markup, annotated - select for diffs
Mon Dec 14 16:53:37 2020 UTC (4 years, 4 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.86.2.1: preferred, colored; branchpoint 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86.2.1: +5 -2 lines
Native implementation of the Linux timerfd API.

Revision 1.86.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 16:00:51 2020 UTC (4 years, 4 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +5 -2 lines
Native implementation of the Linux eventfd(2) API.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Sat May 2 18:43:02 2020 UTC (4 years, 11 months ago) by christos
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-futex
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +1 -2 lines
We don't have rnd_ctx anymore.

Revision 1.83.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:57 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.83: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83: +8 -4 lines
Sync with HEAD

Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed May 8 13:40:19 2019 UTC (5 years, 11 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +2 -2 lines
Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly.  Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism.  The encoding/channels/frequency
  conversions are completely handled in the upper layer.  So the hard-
  ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
  - Obsoletes query_encoding and add query_format instead.
  - Obsoletes set_params and add set_format instead.
  - Remove drain, setfd, mappage.
  - The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c         -> dev/audio/audio.c (rewritten)
- dev/audiovar.h      -> dev/audio/audiovar.h
- dev/audio_dai.h     -> dev/audio/audio_dai.h
- dev/audio_if.h      -> dev/audio/audio_if.h
- dev/audiobell.c     -> dev/audio/audiobell.c
- dev/audiobellvar.h  -> dev/audio/audiobellvar.h
- dev/mulaw.[ch]      -> dev/audio/mulaw.[ch] + dev/audio/alaw.c

Revision 1.84.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 21 04:28:59 2019 UTC (6 years ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +2 -2 lines
Reimplement audio subsystem.
http://mail-index.netbsd.org/tech-kern/2019/04/01/msg024944.html
At first step, audio and devices tightly coupled to audio.
 audio.c -> dev/audio.c: completely rewritten.
 mulaw.c -> audio/mulaw.c, audio/alaw.c: improve quality.
 audiovar.h, mulaw.h: should be removed.
 audio/linear.c: efficient new linear-linear converter.
 auconv.[ch]: should be removed but need some functions for now.
 aurateconv, auvolconv: removed (new audio.c handles it).
 audiobell.c: efficient and small new bell driver.
 audiobelldata.h: removed 4KB sine wave data.
 pad/pad.c: catch up audio, but not cloneable for now.

Revision 1.83.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:47 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.83: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83: +7 -3 lines
Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Aug 27 22:22:16 2018 UTC (6 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, isaki-audio2-base
Branch point for: isaki-audio2
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +7 -3 lines
Fix lying comment; the point of the KERN_FILE2 sysctl, or much of it,
is to not expose struct file directly.

Revision 1.74.14.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:20 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.74.14.1: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.14.1: +56 -19 lines
update from HEAD

Revision 1.83: download - view: text, markup, annotated - select for diffs
Thu Nov 30 20:25:56 2017 UTC (7 years, 4 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +2 -1 lines
add fo_name so we can identify the fileops in a simple way.

Revision 1.77.2.4: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:16 2017 UTC (7 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.77.2.3: preferred, colored; branchpoint 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77.2.3: +5 -1 lines
Sync with HEAD

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Jul 1 23:31:19 2017 UTC (7 years, 9 months ago) by nat
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -1 lines
Pad is now clones its device, attaching upon open and detaching upon close.
This means that only one pad device is required in /dev.

The code contains a compile time limit of 128 units.

Ok christos@.

Revision 1.80.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:08 2017 UTC (8 years ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80: +3 -1 lines
Sync with HEAD

Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:53 2017 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +5 -3 lines
Sync with HEAD

Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Feb 10 19:31:42 2017 UTC (8 years, 2 months ago) by nat
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -1 lines
Audio now uses fdclone, there is no longer a limitation of one audio
instance per process.  Virtual channels are placed in a queue, so there is
no longer a compile time limit of VAUDIOCHANS.

A new sysctl has been added to control multiple user access.
Mixer labels on virtual channels are now prefixed by vchan.

audiobell.c and audioctl have been updated to reflect these changes.

Use of fdclone was posted to tech-kern@ and improvements made.
Multiuser access control changes and the use of a queue were suggessted by
pgoyette@

Revision 1.77.2.3: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:41:01 2017 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.77.2.2: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.2: +3 -3 lines
Sync with HEAD

Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Jan 12 18:50:17 2017 UTC (8 years, 3 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3 lines
friendlier to _KMEMUSER

Revision 1.77.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:30 2015 UTC (9 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.77.2.1: preferred, colored; branchpoint 1.77: preferred, colored
Changes since revision 1.77.2.1: +3 -1 lines
Sync with HEAD

Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat May 30 20:09:47 2015 UTC (9 years, 10 months ago) by joerg
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -1 lines
Create a per-device state for iscsi(4), effectively making it a cloning
device.

Revision 1.77.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:32 2015 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +11 -9 lines
Sync with HEAD

Revision 1.75.12.1: download - view: text, markup, annotated - select for diffs
Wed Dec 31 06:44:01 2014 UTC (10 years, 3 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +4 -3 lines
Pull up following revision(s) (requested by chs in ticket #363):
	common/lib/libprop/prop_kern.c: revision 1.18
	sys/arch/mac68k/dev/grf_compat.c: revision 1.27
	sys/arch/x68k/dev/grf.c: revision 1.45
	sys/external/bsd/drm/dist/bsd-core/drm_bufs.c: revision 1.12
	sys/external/bsd/drm2/drm/drm_drv.c: revision 1.12
	sys/external/bsd/drm2/drm/drm_vm.c: revision 1.6
	sys/external/bsd/drm2/include/linux/mm.h: revision 1.4
	sys/kern/vfs_vnops.c: revision 1.192 via patch
	sys/rump/librump/rumpkern/vm.c: revision 1.160
	sys/sys/file.h: revision 1.78 via patch
	sys/uvm/uvm_device.c: revision 1.64
	sys/uvm/uvm_device.h: revision 1.13
	sys/uvm/uvm_extern.h: revision 1.192
	sys/uvm/uvm_mmap.c: revision 1.150 via patch
add a new "fo_mmap" fileops method to allow use of arbitrary uvm_objects for
mappings of file objects.  move vnode-specific details of mmap()ing a vnode
from uvm_mmap() to the new vnode-specific vn_mmap().  add new uvm_mmap_dev()
and uvm_mmap_anon() convenience functions for mapping character devices
and anonymous memory, and replace all other calls to uvm_mmap() with those.
use the new fileop in drm2 so that libdrm can use mmap() to map things
like on other platforms (instead of the ioctl that we have used so far).

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun Dec 14 23:48:58 2014 UTC (10 years, 4 months ago) by chs
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +11 -9 lines
add a new "fo_mmap" fileops method to allow use of arbitrary uvm_objects for
mappings of file objects.  move vnode-specific details of mmap()ing a vnode
from uvm_mmap() to the new vnode-specific vn_mmap().  add new uvm_mmap_dev()
and uvm_mmap_anon() convenience functions for mapping character devices
and anonymous memory, and replace all other calls to uvm_mmap() with those.
use the new fileop in drm2 so that libdrm can use mmap() to map things
like on other platforms (instead of the ioctl that we have used so far).

Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Sep 5 09:17:04 2014 UTC (10 years, 7 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +28 -2 lines
Avoid casting f_data, make it a union of the various pointers it can be.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Sep 5 05:42:50 2014 UTC (10 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +18 -16 lines
Don't nest structure definitions.

Revision 1.74.14.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:11 2013 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +5 -1 lines
resync with head

Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:30 2013 UTC (12 years, 3 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +5 -1 lines
sync with head

Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Jan 2 19:35:43 2013 UTC (12 years, 3 months ago) by dsl
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, khorben-n900, agc-symver-base, agc-symver
Branch point for: netbsd-7
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +5 -1 lines
Expose the DTYPE_xxx (names) defines even if _KERNEL isn't defined.
There is no other excuse for including this file in userspace.

Revision 1.71.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:10:11 2011 UTC (13 years, 10 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +18 -12 lines
Sync with HEAD.

Revision 1.71.4.2: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:12 2011 UTC (13 years, 10 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.71.4.1: preferred, colored; branchpoint 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71.4.1: +0 -2 lines
sync with head

Revision 1.74: download - view: text, markup, annotated - select for diffs
Sun Apr 24 18:46:24 2011 UTC (14 years ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +1 -2 lines
- Replace few malloc(9) uses with kmem(9).
- Rename buf_malloc() to buf_alloc(), fix comments.
- Remove some unnecessary inclusions.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sat Apr 23 18:57:28 2011 UTC (14 years ago) by rmind
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +1 -2 lines
- Sprinkle __cacheline_aligned and __read_mostly in file descriptor code.
- While here, remove trailing whitespaces, KNF.

Revision 1.71.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:42:18 2011 UTC (14 years ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +18 -10 lines
sync with head

Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Apr 11 22:31:43 2011 UTC (14 years ago) by rmind
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +18 -10 lines
Highly rewrite POSIX semaphore.  Use file descriptor subsystem, greatly
simplify reference counting, and fix various bugs which existed before,
e.g. some incorrect locking or mq_unlink() not checking for permissions.

Also, fixes PR/43452.

Revision 1.64.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:41 2010 UTC (15 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64.4.2: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.4.2: +4 -4 lines
sync with head

Revision 1.71: download - view: text, markup, annotated - select for diffs
Thu Dec 24 19:01:12 2009 UTC (15 years, 4 months ago) by elad
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +2 -2 lines
When reporting open files using sysctl, don't use 'filehead' to fetch files,
as we don't have a process context to authorize on. Instead, traverse the
file descriptor table of each process -- as we already do in one case.

Introduce a "marker" we can use to mark files we've seen in an iteration, as
the same file can be referenced more than once.

Hopefully this availability of filtering by process also makes life easier
for those who are interested in implementing process "containers" etc.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Dec 20 09:36:06 2009 UTC (15 years, 4 months ago) by dsl
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Dec 9 21:33:00 2009 UTC (15 years, 4 months ago) by dsl
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3 lines
Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.

Revision 1.65.10.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:56 2009 UTC (15 years, 9 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.65.10.1: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.10.1: +1 -4 lines
Sync with HEAD.

Revision 1.64.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:37 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64.4.1: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.4.1: +1 -4 lines
sync with head

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun May 17 05:54:42 2009 UTC (15 years, 11 months ago) by yamt
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base, jym-xensuspend-nbase
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +1 -4 lines
remove FILE_LOCK and FILE_UNLOCK.

Revision 1.65.10.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:23:03 2009 UTC (15 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +40 -2 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.64.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:35 2009 UTC (15 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +42 -4 lines
sync with head.

Revision 1.65.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:52 2009 UTC (16 years ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +40 -2 lines
Sync with HEAD.

Revision 1.53.16.1: download - view: text, markup, annotated - select for diffs
Sat Apr 11 06:24:23 2009 UTC (16 years ago) by snj
Branches: netbsd-3-1
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +3 -2 lines
Apply patch (requested by mlelstv in ticket #2004):
Avoid deep recursion and file descriptor exhaustion.
1. unp_detach: go not call unp_gc directly for descriptors
that are unixdomain sockets themselves. Instead mark them
for cleanup during garbage collection.
2. unp_gc: handle detach of descriptors that were marked earlier.
3. prohibit transfer of descriptors within SCM_RIGHTS messages if
(num_files_in_transit > maxfiles / unp_rights_ratio)

Revision 1.53.14.1: download - view: text, markup, annotated - select for diffs
Sat Apr 11 06:21:23 2009 UTC (16 years ago) by snj
Branches: netbsd-3-0
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +3 -2 lines
Apply patch (requested by mlelstv in ticket #2004):
Avoid deep recursion and file descriptor exhaustion.
1. unp_detach: go not call unp_gc directly for descriptors
that are unixdomain sockets themselves. Instead mark them
for cleanup during garbage collection.
2. unp_gc: handle detach of descriptors that were marked earlier.
3. prohibit transfer of descriptors within SCM_RIGHTS messages if
(num_files_in_transit > maxfiles / unp_rights_ratio)

Revision 1.53.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 11 06:18:21 2009 UTC (16 years ago) by snj
Branches: netbsd-3
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +3 -2 lines
Apply patch (requested by mlelstv in ticket #2004):
Avoid deep recursion and file descriptor exhaustion.

1. unp_detach: go not call unp_gc directly for descriptors
   that are unixdomain sockets themselves. Instead mark them
   for cleanup during garbage collection.

2. unp_gc: handle detach of descriptors that were marked earlier.

3. prohibit transfer of descriptors within SCM_RIGHTS messages if
   (num_files_in_transit > maxfiles / unp_rights_ratio)

Revision 1.56.30.1: download - view: text, markup, annotated - select for diffs
Fri Apr 10 20:35:24 2009 UTC (16 years ago) by snj
Branches: netbsd-4-0
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +3 -2 lines
Apply patch (requested by mlelstv in ticket #1303):
Avoid deep recursion and file descriptor exhaustion.
1. unp_detach: go not call unp_gc directly for descriptors
  that are unixdomain sockets themselves. Instead mark them
  for cleanup during garbage collection.
2. unp_gc: handle detach of descriptors that were marked earlier.
3. prohibit transfer of descriptors within SCM_RIGHTS messages if
  (num_files_in_transit > maxfiles / unp_rights_ratio)

Revision 1.56.12.1: download - view: text, markup, annotated - select for diffs
Fri Apr 10 20:32:04 2009 UTC (16 years ago) by snj
Branches: netbsd-4
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +3 -2 lines
Apply patch (requested by mlelstv in ticket #1303):
Avoid deep recursion and file descriptor exhaustion.

1. unp_detach: go not call unp_gc directly for descriptors
   that are unixdomain sockets themselves. Instead mark them
   for cleanup during garbage collection.

2. unp_gc: handle detach of descriptors that were marked earlier.

3. prohibit transfer of descriptors within SCM_RIGHTS messages if
   (num_files_in_transit > maxfiles / unp_rights_ratio)

Revision 1.65.6.2: download - view: text, markup, annotated - select for diffs
Sat Apr 4 23:36:28 2009 UTC (16 years ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Diff to: previous 1.65.6.1: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.6.1: +5 -1 lines
Pull up following revision(s) (requested by ad in ticket #661):
	sys/arch/xen/xen/xenevt.c: revision 1.32
	sys/compat/svr4/svr4_net.c: revision 1.56
	sys/compat/svr4_32/svr4_32_net.c: revision 1.19
	sys/dev/dmover/dmover_io.c: revision 1.32
	sys/dev/putter/putter.c: revision 1.21
	sys/kern/kern_descrip.c: revision 1.190
	sys/kern/kern_drvctl.c: revision 1.23
	sys/kern/kern_event.c: revision 1.64
	sys/kern/sys_mqueue.c: revision 1.14
	sys/kern/sys_pipe.c: revision 1.109
	sys/kern/sys_socket.c: revision 1.59
	sys/kern/uipc_syscalls.c: revision 1.136
	sys/kern/vfs_vnops.c: revision 1.164
	sys/kern/uipc_socket.c: revision 1.188
	sys/net/bpf.c: revision 1.144
	sys/net/if_tap.c: revision 1.55
	sys/opencrypto/cryptodev.c: revision 1.47
	sys/sys/file.h: revision 1.67
	sys/sys/param.h: patch
	sys/sys/socketvar.h: revision 1.119
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Apr 4 10:12:52 2009 UTC (16 years ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +5 -1 lines
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.

Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.

thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.65.6.1: download - view: text, markup, annotated - select for diffs
Wed Mar 18 05:33:23 2009 UTC (16 years, 1 month ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC3
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +36 -2 lines
Pull up following revision(s) (requested by mrg in ticket #577):
	sys/kern/kern_descrip.c: revision 1.188
	sys/kern/uipc_usrreq.c: revision 1.121
	sys/sys/fcntl.h: revision 1.35
	sys/sys/file.h: revision 1.66
	sys/sys/param.h: patch
	sys/sys/un.h: revision 1.45
completely rework the way that orphaned sockets that are being fdpassed
via SCM_RIGHTS messages are dealt with:
1. unp_gc: make this a kthread.
2. unp_detach: go not call unp_gc directly. instead, wake up unp_gc kthread.
3. unp_scan: do not close files here. instead, put them on a global list
   for unp_gc to close, along with a per-file "deferred close count". if
   file is already enqueued for close, just increment deferred close count.
   this eliminates the recursive calls.
3. unp_gc: scan files on global deferred close list. close each file N
   times, as specified by deferred close count in file. continue processing
   list until it becomes empty (closing may cause additional files to be
   queued for close).
4. unp_gc: add additional bit to mark files we are scanning. set during
   initial scan of global file list that currently clears FMARK/FDEFER.
   during later scans, never examine / garbage collect descriptors that
   we have not marked during the earlier scan. do not proceed with this
   initial scan until all deferred closes have been processed. be careful
   with locking to ensure no races are introduced between deferred close
   and file scan.
5. unp_gc: use dummy file_t to mark position in list when scanning. allow
   us to drop filelist_lock. in turn allows us to eliminate kmem_alloc()
   and safely close files, etc.
6. prohibit transfer of descriptors within SCM_RIGHTS messages if
   (num_files_in_transit > maxfiles / unp_rights_ratio)
7. fd_allocfile: ensure recycled filse don't get scanned.
this is 97% work done by andrew doran, with a couple of minor bug fixes
and a lot of testing by yours truly.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed Mar 11 06:05:29 2009 UTC (16 years, 1 month ago) by mrg
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +36 -2 lines
completely rework the way that orphaned sockets that are being fdpassed
via SCM_RIGHTS messages are dealt with:

1. unp_gc: make this a kthread.

2. unp_detach: go not call unp_gc directly. instead, wake up unp_gc kthread.

3. unp_scan: do not close files here. instead, put them on a global list
   for unp_gc to close, along with a per-file "deferred close count". if
   file is already enqueued for close, just increment deferred close count.
   this eliminates the recursive calls.

3. unp_gc: scan files on global deferred close list. close each file N
   times, as specified by deferred close count in file. continue processing
   list until it becomes empty (closing may cause additional files to be
   queued for close).

4. unp_gc: add additional bit to mark files we are scanning. set during
   initial scan of global file list that currently clears FMARK/FDEFER.
   during later scans, never examine / garbage collect descriptors that
   we have not marked during the earlier scan. do not proceed with this
   initial scan until all deferred closes have been processed. be careful
   with locking to ensure no races are introduced between deferred close
   and file scan.

5. unp_gc: use dummy file_t to mark position in list when scanning. allow
   us to drop filelist_lock. in turn allows us to eliminate kmem_alloc()
   and safely close files, etc.

6. prohibit transfer of descriptors within SCM_RIGHTS messages if
   (num_files_in_transit > maxfiles / unp_rights_ratio)

7. fd_allocfile: ensure recycled filse don't get scanned.


this is 97% work done by andrew doran, with a couple of minor bug fixes
and a lot of testing by yours truly.

Revision 1.64.6.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:37:04 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +3 -3 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.63.6.2: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:20 2008 UTC (16 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.63.6.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.6.1: +2 -2 lines
Sync with HEAD.

Revision 1.64.8.1: download - view: text, markup, annotated - select for diffs
Fri Jun 27 15:11:55 2008 UTC (16 years, 10 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +3 -3 lines
Sync with head.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Jun 24 10:26:27 2008 UTC (16 years, 10 months ago) by gmcgarry
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base2, netbsd-5-base, netbsd-5-0-RC2, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, jym-xensuspend
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
ioctl commands are unsigned long.  Changes ABI for fsetown() and fgetown() on 64-bit architectures.

Revision 1.63.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:11 2008 UTC (17 years ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +29 -100 lines
Sync with HEAD.

Revision 1.53.6.6: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:10 2008 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.53.6.5: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.6.5: +29 -100 lines
sync with head.

Revision 1.57.8.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:10 2008 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
Diff to: previous 1.57.8.2: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.8.2: +11 -6 lines
sync with HEAD

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:53:35 2008 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase, ad-socklock-base1
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +29 -100 lines
File descriptor changes, discussed on tech-kern:

- Redo reference counting to be sane.  LWPs accessing files take a short
  term reference on the local file descriptor.  This is the most common
  case.  While a file is in a process descriptor table, a reference is
  held to the file.  The file reference count only changes during control
  operations like open() or close().  Code that comes at files from an
  unusual direction (i.e. foreign to the process) like procfs or sysctl
  takes a reference on the file (f_count), and not on a descriptor.

- Remove knowledge of reference counting and locking from most code that
  deals with files.

- Make the usual case of file descriptor lookup lockless.

- Make kqueue MP and MT safe. PR kern/38098, PR kern/38137.

- Fix numerous file handling bugs, and bugs in the descriptor code that
  affected multithreaded processes.

- Split descriptor system calls out into sys_descrip.c.

- A few stylistic changes: KNF, remove unused casts now that caddr_t is
  gone. Replace dumb gotos with loop control in a few places.

- Don't do redundant pointer passing (struct proc, lwp, filedesc *) unless
  the routine is likely to be inlined.  Most of the time it's about the
  current process.

Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:23 2008 UTC (17 years, 2 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +25 -13 lines
Sync with HEAD.

Revision 1.53.6.5: download - view: text, markup, annotated - select for diffs
Mon Feb 11 15:00:09 2008 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.53.6.4: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.6.4: +11 -6 lines
sync with head.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Feb 6 21:51:36 2008 UTC (17 years, 2 months ago) by ad
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: mjf-devfs2
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +11 -6 lines
- Shrink 'struct file' to 60 bytes on 32-bit platforms.
- Align 'struct file' and 'struct filedesc' to CACHE_LINE_SIZE.

Revision 1.53.6.4: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:47:49 2008 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.53.6.3: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.6.3: +15 -8 lines
sync with head

Revision 1.57.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:58:08 2008 UTC (17 years, 3 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.57.8.1: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.8.1: +15 -8 lines
sync with HEAD

Revision 1.60.10.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:55 2008 UTC (17 years, 3 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.60.10.1: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.10.1: +12 -5 lines
Sync with HEAD

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Jan 5 18:52:16 2008 UTC (17 years, 3 months ago) by dsl
Branches: MAIN
CVS tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +13 -6 lines
Add FILE_LOCK() and FILE_UNLOCK() defines.
Change a comment to make it clear that if code doesn't call FILE_USE()
it should call FILE_UNLOCK() instead.

Revision 1.60.10.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:58:00 2008 UTC (17 years, 3 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
Sync with HEAD

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Dec 26 16:01:38 2007 UTC (17 years, 4 months ago) by ad
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
Merge more changes from vmlocking2, mainly:

- Locking improvements.
- Use pool_cache for more items.

Revision 1.60.6.1: download - view: text, markup, annotated - select for diffs
Thu Dec 13 17:53:59 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +3 -3 lines
Eliminate contention on filelist_lock.

Revision 1.57.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:34:47 2007 UTC (17 years, 5 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +19 -12 lines
sync with HEAD

Revision 1.53.6.3: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:36:29 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.53.6.2: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.6.2: +19 -12 lines
sync with head.

Revision 1.57.6.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:49:17 2007 UTC (17 years, 6 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.57.6.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.6.1: +14 -12 lines
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.58.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:49:06 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +14 -12 lines
sync with head.

Revision 1.56.18.4: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:45:08 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.56.18.3: preferred, colored; branchpoint 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.18.3: +7 -2 lines
Sync with head.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Oct 8 23:20:38 2007 UTC (17 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, bouyer-xeni386
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -2 lines
Add "mqueue" to DTYPE_NAMES.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Oct 8 15:12:11 2007 UTC (17 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +13 -11 lines
Merge file descriptor locking, cwdi locking and cross-call changes
from the vmlocking branch.

Revision 1.56.18.3: download - view: text, markup, annotated - select for diffs
Wed Oct 3 19:11:15 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.56.18.2: preferred, colored; branchpoint 1.56: preferred, colored
Changes since revision 1.56.18.2: +5 -5 lines
- 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.57.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:29:27 2007 UTC (17 years, 6 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -1 lines
Sync with HEAD.

Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 10 10:56:18 2007 UTC (17 years, 7 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +6 -1 lines
Sync with HEAD.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Fri Sep 7 18:56:11 2007 UTC (17 years, 7 months ago) by rmind
Branches: MAIN
CVS tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -1 lines
Implementation of POSIX message queues.

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

Revision 1.53.6.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:46:13 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.53.6.1: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.6.1: +8 -7 lines
sync with head.

Revision 1.56.18.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:28:10 2007 UTC (17 years, 9 months ago) by ad
Branches: vmlocking
Diff to: previous 1.56.18.1: preferred, colored; branchpoint 1.56: preferred, colored
Changes since revision 1.56.18.1: +8 -7 lines
Sync with head.

Revision 1.56.20.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:12:27 2007 UTC (17 years, 9 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +8 -7 lines
Sync with head.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Jun 16 20:48:04 2007 UTC (17 years, 10 months ago) by dsl
Branches: MAIN
CVS tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +8 -7 lines
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.56.18.1: download - view: text, markup, annotated - select for diffs
Wed Mar 21 20:11:57 2007 UTC (18 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +9 -7 lines
- Replace more simple_locks, and fix up in a few places.
- Use condition variables.
- LOCK_ASSERT -> KASSERT.

Revision 1.55.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:59:42 2006 UTC (18 years, 7 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +4 -4 lines
sync with head

Revision 1.53.6.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:12:03 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +24 -22 lines
sync with head.

Revision 1.55.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:39:26 2006 UTC (18 years, 10 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +4 -4 lines
Sync with head.

Revision 1.55.12.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:47 2006 UTC (18 years, 11 months ago) by tron
Branches: peter-altq
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +4 -4 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.55.8.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:59:21 2006 UTC (18 years, 11 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +4 -4 lines
sync with head.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun May 14 21:38:18 2006 UTC (18 years, 11 months ago) by elad
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, matt-nb4-arm-base, matt-nb4-arm, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: vmlocking, netbsd-4-0, netbsd-4, mjf-ufs-trans
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -4 lines
integrate kauth.

Revision 1.55.10.2: download - view: text, markup, annotated - select for diffs
Sat May 6 23:32:33 2006 UTC (18 years, 11 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.55.10.1: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.10.1: +2 -3 lines
- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.55.10.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:01:13 2006 UTC (19 years, 1 month ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -4 lines
Adapt to kernel authorization changes.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:25:20 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +19 -18 lines
merge ktrace-lwp.

Revision 1.43.2.10: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:36 2005 UTC (19 years, 4 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.43.2.9: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.9: +3 -2 lines
Sync with head.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Nov 29 22:52:02 2005 UTC (19 years, 5 months ago) by yamt
Branches: MAIN
CVS tags: ktrace-lwp-base
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -2 lines
merge yamt-readahead branch.

Revision 1.53.12.4: download - view: text, markup, annotated - select for diffs
Tue Nov 22 15:19:37 2005 UTC (19 years, 5 months ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.53.12.3: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.12.3: +3 -3 lines
comments.

Revision 1.53.12.3: download - view: text, markup, annotated - select for diffs
Fri Nov 18 08:44:55 2005 UTC (19 years, 5 months ago) by yamt
Branches: yamt-readahead
CVS tags: yamt-readahead-pervnode
Diff to: previous 1.53.12.2: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.12.2: +2 -4 lines
- associate read-ahead context to vnode, rather than file.
- revert VOP_READ prototype.

Revision 1.53.12.2: download - view: text, markup, annotated - select for diffs
Tue Nov 15 05:24:48 2005 UTC (19 years, 5 months ago) by yamt
Branches: yamt-readahead
CVS tags: yamt-readahead-perfile
Diff to: previous 1.53.12.1: preferred, colored; branchpoint 1.53: preferred, colored
Changes since revision 1.53.12.1: +2 -1 lines
add posix_fadvise.

Revision 1.53.12.1: download - view: text, markup, annotated - select for diffs
Tue Nov 15 04:17:21 2005 UTC (19 years, 5 months ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -1 lines
add a pointer to read ahead context to struct file.

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:37 2005 UTC (20 years ago) by kent
Branches: kent-audio2
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +2 -2 lines
sync with -current

Revision 1.52.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:52 2005 UTC (20 years, 1 month ago) by yamt
Branches: yamt-km
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +2 -2 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.43.2.9: download - view: text, markup, annotated - select for diffs
Tue Feb 15 21:33:41 2005 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.8: preferred, colored
Changes since revision 1.43.2.8: +2 -2 lines
Sync with HEAD.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Feb 12 23:14:03 2005 UTC (20 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, 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-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, kent-audio2-base
Branch point for: yamt-readahead, yamt-lazymbuf, netbsd-3-1, netbsd-3-0, netbsd-3
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2 lines
pass the flag to fdclone.

Revision 1.43.2.8: download - view: text, markup, annotated - select for diffs
Sat Dec 18 11:21:25 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.7: preferred, colored
Changes since revision 1.43.2.7: +3 -1 lines
Sync with HEAD.

Revision 1.43.2.7: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:33:17 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.6: preferred, colored
Changes since revision 1.43.2.6: +12 -3 lines
Sync with HEAD.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Dec 18 08:43:08 2004 UTC (20 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -1 lines
Add an array of dtype names.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Nov 30 04:25:44 2004 UTC (20 years, 5 months ago) by christos
Branches: MAIN
CVS tags: kent-audio1-base, kent-audio1
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +12 -3 lines
Cloning cleanup:
1. make fileops const
2. add 2 new negative errno's to `officially' support the cloning hack:
    - EDUPFD (used to overload ENODEV)
    - EMOVEFD (used to overload ENXIO)
3. Created an fdclone() function to encapsulate the operations needed for
   EMOVEFD, and made all cloners use it.
4. Centralize the local noop/badop fileops functions to:
   fnullop_fcntl, fnullop_poll, fnullop_kqfilter, fbadop_stat

Revision 1.43.2.6: download - view: text, markup, annotated - select for diffs
Tue Oct 12 05:57:51 2004 UTC (20 years, 6 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.5: preferred, colored
Changes since revision 1.43.2.5: +5 -5 lines
s/p/l/ in macro definitions that now take a struct lwp *

Revision 1.43.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:38:46 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.4: preferred, colored
Changes since revision 1.43.2.4: +11 -10 lines
Fix the sync with head I botched.

Revision 1.43.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:56:30 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.3: preferred, colored
Changes since revision 1.43.2.3: +10 -11 lines
Sync with HEAD.

Revision 1.43.2.3: download - view: text, markup, annotated - select for diffs
Sat Aug 21 22:39:05 2004 UTC (20 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.2: preferred, colored
Changes since revision 1.43.2.2: +2 -1 lines
Forward declare struct lwp

Revision 1.43.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:56:27 2004 UTC (20 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.43.2.1: preferred, colored
Changes since revision 1.43.2.1: +24 -25 lines
Sync with HEAD

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun May 16 17:48:18 2004 UTC (20 years, 11 months ago) by pk
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +6 -3 lines
Provide a version of FILE_UNUSE() for cases where we already hold the
file's lock.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Apr 25 16:42:43 2004 UTC (21 years ago) by simonb
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +1 -3 lines
Initialise (most) pools from a link set instead of explicit calls
to pool_init.  Untouched pools are ones that either in arch-specific
code, or aren't initialiased during initial system startup.

 Convert struct session, ucred and lockf to pools.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Sep 22 13:00:04 2003 UTC (21 years, 7 months ago) by christos
Branches: MAIN
CVS tags: 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
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -2 lines
- pass signo to fownsignal [ok by jd]
- make urg signal handling use fownsignal
- remove out of band detection in sowakeup

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Sep 21 19:17:17 2003 UTC (21 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -1 lines
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.46: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:34:03 2003 UTC (21 years, 8 months ago) by agc
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -6 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Jul 26 23:08:00 2003 UTC (21 years, 9 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -1 lines
Add DTYPE_CRYPTO, for  userspaace access to the crypto framework,
which wants close-on-exec semantics (in addition to cloning).

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Jul 8 06:31:30 2003 UTC (21 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +14 -17 lines
no variable in prototype

Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:27:15 2003 UTC (21 years, 9 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +10 -10 lines
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.43: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:32:25 2003 UTC (21 years, 10 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +13 -13 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Jun 29 05:43:56 2003 UTC (21 years, 10 months ago) by enami
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4 lines
Add forward declaration of struct lwp instead of struct proc.  Sort those
while I'm here.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:22:21 2003 UTC (21 years, 10 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +10 -10 lines
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.40: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:13:50 2003 UTC (22 years, 1 month ago) by dsl
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -4 lines
Change 'data' argument to fo_ioctl and fo_fcntl from 'caddr_t' to 'void *'.
Avoids a lot of casting and removes the need for some line breaks.
Removed a load of (caddr_t) casts from calls to copyin/copyout as well.
(approved by christos - he has a plan to remove caddr_t...)

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Feb 24 11:18:03 2003 UTC (22 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +1 -2 lines
one #include <sys/lock.h> is enough; keep the #ifdef _KERNEL one

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Feb 24 10:18:38 2003 UTC (22 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -1 lines
include <sys/lock.h> to get struct simplelock

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Feb 23 16:38:01 2003 UTC (22 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -1 lines
Include <sys/lock.h> for the struct simplelock recently added here.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Feb 23 14:37:38 2003 UTC (22 years, 2 months ago) by pk
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +12 -1 lines
Make updating a file's reference and use count MP-safe.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Feb 1 06:23:50 2003 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +5 -1 lines
Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.23.2.6: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:16:27 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.23.2.5: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.2.5: +3 -0 lines
Catch up to -current

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:14:57 2002 UTC (22 years, 6 months ago) by jdolecek
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -1 lines
merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.28.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:49:56 2002 UTC (22 years, 7 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.28.2.2: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.2.2: +2 -1 lines
sync kqueue branch with HEAD

Revision 1.23.2.5: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:46:57 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.23.2.4: preferred, colored
Changes since revision 1.23.2.4: +2 -2 lines
Catch up to -current.

Revision 1.31.8.2: download - view: text, markup, annotated - select for diffs
Sat Jul 20 11:35:15 2002 UTC (22 years, 9 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.31.8.1: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.8.1: +2 -2 lines
catch up with -current.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Jul 16 16:40:55 2002 UTC (22 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base, gehenna-devsw-base
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
Rename DTYPE_SYSTRACE to DTYPE_MISC.  DTYPE_MISC can now be used by
any misc. pseudo-device which requires cloning semantics.

Revision 1.31.8.1: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:37:13 2002 UTC (22 years, 9 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -1 lines
catch up with -current.

Revision 1.23.2.4: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:50:11 2002 UTC (22 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.23.2.3: preferred, colored
Changes since revision 1.23.2.3: +2 -1 lines
Catch up to -current.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Jun 18 01:54:05 2002 UTC (22 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -1 lines
Need DTYPE_SYSTRACE (XXX for now, until we get real cloning devices).

Revision 1.28.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:04:42 2002 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.28.2.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.1: +7 -8 lines
Sync kqueue branch with -current.

Revision 1.23.2.3: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:34:42 2002 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.23.2.2: preferred, colored
Changes since revision 1.23.2.2: +7 -8 lines
Catch up to -current.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Dec 18 22:29:25 2001 UTC (23 years, 4 months ago) by jdolecek
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +7 -8 lines
struct file: bump f_count and f_msgcount to u_int, to protect against
counter overflow. Fixes kern/5080 by David A. Holland.
Also move f_usecount & f_iflags to better place, and make f_type int.

Note: the maximum possible number of references to a struct file is
maxfiles + unp_rights == 2 * INT_MAX

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Dec 7 07:09:30 2001 UTC (23 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +9 -5 lines
Back off previous for now, Jason thinks it's not right. Will discuss
on tech-kern@

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Dec 6 22:34:24 2001 UTC (23 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -9 lines
replace FIF_WANTCLOSE/FIF_LARVAL with FWANTCLOSE/FLARVAL, which are set
in f_flag of struct file
for now, keep former f_iflags of struct file as _f_spare0, it will be g/c'ed
when struct file will be changed (this will happen soon)

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 10 13:23:50 2001 UTC (23 years, 9 months ago) by lukem
Branches: kqueue
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +6 -3 lines
add DTYPE_KQUEUE
add fo_kqfilter to struct file

Revision 1.23.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:09:47 2001 UTC (23 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.23.2.1: preferred, colored
Changes since revision 1.23.2.1: +15 -5 lines
Catch up to -current.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Jun 16 08:28:39 2001 UTC (23 years, 10 months ago) by jdolecek
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -1 lines
Add DTYPE_PIPE (to be used by new pipe implementation) and handle
it accordingly.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Jun 14 20:32:48 2001 UTC (23 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +10 -1 lines
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.26: download - view: text, markup, annotated - select for diffs
Mon Apr 30 01:13:20 2001 UTC (24 years ago) by lukem
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -4 lines
remove some lint

Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:47:03 2001 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.2: +4 -1 lines
Sync with HEAD

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Apr 9 10:22:02 2001 UTC (24 years ago) by jdolecek
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Change the first arg to fileops fo_stat routine to struct file *, adjust
callers and appropriate routines to cope. This makes fo_stat more
consistent with rest of fileops routines and also makes the fo_stat
match FreeBSD as an added bonus.
Discussed with Luke Mewburn on tech-kern@.

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:59:02 2001 UTC (24 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -1 lines
Catch up with -current.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Apr 7 09:00:58 2001 UTC (24 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -1 lines
Add new 'stat' fileop and call the stat function via f_ops rather
than directly.
For compat syscalls, also add necessary FILE_USE()/FILE_UNUSE().
Now that soo_stat() gets a proc arg, pass it on to usrreq function.

Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:32:04 2001 UTC (24 years, 1 month ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +44 -44 lines
Sync with HEAD.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Feb 26 16:39:14 2001 UTC (24 years, 2 months ago) by lukem
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +44 -44 lines
convert to ANSI KNF

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:11:31 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -1 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.18.6.1: download - view: text, markup, annotated - select for diffs
Tue Feb 1 23:11:40 2000 UTC (25 years, 2 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +3 -1 lines
Pull up revision 1.22 (requested by assar):
  Move the declaration of `vnops' to a header file, for the
  benefit of LKMs.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Feb 1 01:22:45 2000 UTC (25 years, 3 months ago) by assar
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, chs-ubc2-newbase
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -1 lines
add declaration for `vnops'

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Aug 3 20:19:21 1999 UTC (25 years, 8 months ago) by wrstuden
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -1 lines
Add support for fcntl(2) to generate VOP_FCNTL calls. Any fcntl
call with F_FSCTL set and F_SETFL calls generate calls to a new
fileop fo_fcntl. Add genfs_fcntl() and soo_fcntl() which return 0
for F_SETFL and EOPNOTSUPP otherwise. Have all leaf filesystems
use genfs_fcntl().

Reviewed by: thorpej
Tested by: wrstuden

Revision 1.18.8.2: download - view: text, markup, annotated - select for diffs
Mon Aug 2 22:55:59 1999 UTC (25 years, 8 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.18.8.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.8.1: +3 -2 lines
Update from trunk.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Jul 3 20:04:10 1999 UTC (25 years, 9 months ago) by kleink
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2 lines
Bump f_flag to a full int in order to provide sufficient space to hold all
currently defined flag bits; thanks go to Bill Studenmund for noticing this.

Revision 1.18.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:30:17 1999 UTC (25 years, 10 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +32 -1 lines
Sync w/ -current.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed May 5 20:01:12 1999 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +32 -1 lines
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.18: download - view: text, markup, annotated - select for diffs
Mon Aug 31 23:55:38 1998 UTC (26 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, 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: netbsd-1-4, chs-ubc2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -1 lines
Use the pool allocator and "nointr" pool page allocator for file structures.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Jul 1 00:03:23 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -1 lines
Add a forward declaration for struct iovec.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Jun 30 07:39:22 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +11 -1 lines
Split up read/readv/write/writev into the system call front-end and
the guts that actually perform the I/O request.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jun 30 05:33:11 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +12 -5 lines
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.14: download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:24:12 1998 UTC (27 years, 2 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Merge with Lite2 + local changes

Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:13:55 1998 UTC (27 years, 2 months ago) by fvdl
Branches: WFJ-920714, CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +9 -7 lines
Import 4.4BSD-Lite2

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:11:03 1998 UTC (27 years, 2 months ago) by fvdl
Branches: WFJ-920714, CSRG
CVS tags: lite-1, date-03-may-96
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +6 -3 lines
Import 4.4BSD-Lite for reference

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Feb 10 00:25:30 1998 UTC (27 years, 2 months ago) by perry
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +6 -1 lines
add/cleanup multiple inclusion protection.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Sep 7 12:41:32 1996 UTC (28 years, 7 months ago) by mycroft
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Implement poll(2).

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Mar 26 20:24:13 1995 UTC (30 years, 1 month ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
KERNEL -> _KERNEL

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Dec 13 15:21:04 1994 UTC (30 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Sync with CSRG.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Oct 30 21:49:51 1994 UTC (30 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
be more careful with types, also pull in headers where necessary.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Aug 30 03:07:00 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -6 lines
Convert process, file, and namei lists and hash tables to use queue.h.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:44:10 1994 UTC (30 years, 10 months ago) by cgd
Branches: 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
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -1 lines
New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jun 27 19:31:11 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
new standard, minimally intrusive ID format

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat May 21 03:51:57 1994 UTC (30 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -9 lines
update to 4.4-Lite; no serious changes

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Feb 4 22:19:41 1994 UTC (31 years, 2 months ago) by cgd
Branches: MAIN
CVS tags: wnvm, nvm-base, nvm
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -1 lines
define 'struct uio' and 'struct proc'

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu May 20 16:22:15 1993 UTC (31 years, 11 months ago) by cgd
Branches: 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, magnum
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1 lines
add rcs ids as necessary, and also clean up headers

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Apr 19 01:22:38 1993 UTC (32 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -0 lines
Add consistent multiple-inclusion protection.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years, 1 month ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years, 1 month ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>