The NetBSD Project

CVS log for src/sys/miscfs/procfs/procfs_vnops.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.230 / (download) - annotate - [select for diffs], Wed Jan 17 10:19:21 2024 UTC (2 months, 1 week ago) by hannken
Branch: MAIN
CVS Tags: HEAD
Changes since 1.229: +3 -2 lines
Diff to previous 1.229 (colored) to selected 1.121 (colored)

Add a hashmap to access all procfs nodes by pid.

Revision 1.197.2.4 / (download) - annotate - [select for diffs], Fri Jun 17 15:27:10 2022 UTC (21 months, 1 week ago) by martin
Branch: netbsd-8
Changes since 1.197.2.3: +5 -2 lines
Diff to previous 1.197.2.3 (colored) to branchpoint 1.197 (colored) next main 1.198 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by shm in ticket #1748):

	sys/miscfs/procfs/procfs_vnops.c: revision 1.229

Add missing permission check

Revision 1.206.4.2 / (download) - annotate - [select for diffs], Fri Jun 17 15:25:21 2022 UTC (21 months, 1 week ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.206.4.1: +5 -2 lines
Diff to previous 1.206.4.1 (colored) to branchpoint 1.206 (colored) next main 1.207 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by shm in ticket #1475):

	sys/miscfs/procfs/procfs_vnops.c: revision 1.229

Add missing permission check

Revision 1.229 / (download) - annotate - [select for diffs], Fri Jun 17 14:30:37 2022 UTC (21 months, 1 week ago) by shm
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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
Changes since 1.228: +5 -2 lines
Diff to previous 1.228 (colored) to selected 1.121 (colored)

Add missing permission check

Revision 1.228 / (download) - annotate - [select for diffs], Sun Mar 27 17:10:56 2022 UTC (2 years ago) by christos
Branch: MAIN
Changes since 1.227: +4 -34 lines
Diff to previous 1.227 (colored) to selected 1.121 (colored)

dedup the eofs link/symlink methods

Revision 1.227 / (download) - annotate - [select for diffs], Mon Jan 17 11:20:00 2022 UTC (2 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.226: +6 -4 lines
Diff to previous 1.226 (colored) to selected 1.121 (colored)

If the calling process is running under linux emulation, make /proc/xxx/fd/
return only symlinks pointing to the original file in the filesystem,
instead of a hard link. This matches the linux behavior, and some
linux programs relies on it (they unconditionally call readlink() on
/proc/xxx/fd/yy and don't deal with it returning EINVAL).
Proposed on tech-kern@ in
http://mail-index.netbsd.org/tech-kern/2022/01/11/msg027877.html

Revision 1.226 / (download) - annotate - [select for diffs], Fri Jan 14 23:46:56 2022 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.225: +4 -4 lines
Diff to previous 1.225 (colored) to selected 1.121 (colored)

Fix emul and exe DT_ types (from RVP, as was the previous commit)

Revision 1.225 / (download) - annotate - [select for diffs], Fri Jan 14 18:28:28 2022 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.224: +32 -3 lines
Diff to previous 1.224 (colored) to selected 1.121 (colored)

Put the appropriate DT_ constant in the dirent structure depending on the
file type.

Revision 1.224 / (download) - annotate - [select for diffs], Tue Jan 11 22:55:54 2022 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.223: +5 -3 lines
Diff to previous 1.223 (colored) to selected 1.121 (colored)

remove redundant error initialization and break earlier. (from rvp)

Revision 1.223 / (download) - annotate - [select for diffs], Tue Jan 11 11:10:46 2022 UTC (2 years, 2 months ago) by hannken
Branch: MAIN
Changes since 1.222: +4 -6 lines
Diff to previous 1.222 (colored) to selected 1.121 (colored)

Use a single "p" variable.

Should fix PR kern/56614: kernel panic on tmux

Revision 1.222 / (download) - annotate - [select for diffs], Mon Jan 10 23:16:05 2022 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.221: +4 -5 lines
Diff to previous 1.221 (colored) to selected 1.121 (colored)

use a single nc variable.

Revision 1.221 / (download) - annotate - [select for diffs], Mon Jan 10 22:26:14 2022 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.220: +9 -17 lines
Diff to previous 1.220 (colored) to selected 1.121 (colored)

Fix locking in the error path (from RVP). Centralize unlock code.

Revision 1.220 / (download) - annotate - [select for diffs], Wed Dec 8 20:11:54 2021 UTC (2 years, 3 months ago) by andvar
Branch: MAIN
Changes since 1.219: +3 -3 lines
Diff to previous 1.219 (colored) to selected 1.121 (colored)

s/efficent/efficient/ in comments.

Revision 1.219 / (download) - annotate - [select for diffs], Tue Oct 5 18:00:28 2021 UTC (2 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.218: +17 -7 lines
Diff to previous 1.218 (colored) to selected 1.121 (colored)

PR/53299: RVP: kernfs and procfs are broken when sysctl security.curtain
is enabled

Revision 1.215.6.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:40 2021 UTC (2 years, 7 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.215: +26 -49 lines
Diff to previous 1.215 (colored) next main 1.216 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.218 / (download) - annotate - [select for diffs], Sun Jul 18 23:57:14 2021 UTC (2 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.217: +25 -49 lines
Diff to previous 1.217 (colored) to selected 1.121 (colored)

Abolish all the silly indirection macros for initializing vnode ops tables.

These are things of the form #define foofs_op genfs_op, or #define
foofs_op genfs_eopnotsupp, or similar. They serve no purpose besides
obfuscation, and have gotten cutpasted all over everywhere.

Revision 1.217 / (download) - annotate - [select for diffs], Tue Jun 29 22:34:09 2021 UTC (2 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.216: +3 -2 lines
Diff to previous 1.216 (colored) to selected 1.121 (colored)

- Add a new vnode op: VOP_PARSEPATH.
 - Move namei_getcomponent to genfs_vnops.c and call it genfs_parsepath.
 - Add a parsepath entry to every vnode ops table.

VOP_PARSEPATH takes a directory vnode to be searched and a complete
following path and chooses how much of that path to consume. To begin
with, all parsepath calls are genfs_parsepath, which locates the first
'/' as always.

Note that the call doesn't take the whole struct componentname, only
the string. The other bits of struct componentname should not be
needed and there's no reason to cause potential complications by
exposing them.

Revision 1.216 / (download) - annotate - [select for diffs], Mon Jun 28 17:52:13 2021 UTC (2 years, 9 months ago) by chs
Branch: MAIN
Changes since 1.215: +3 -3 lines
Diff to previous 1.215 (colored) to selected 1.121 (colored)

VOP_BMAP() may be called via ioctl(FIOGETBMAP) on any vnode that applications
can open.  change various pseudo-fs *_bmap methods return an error instead of
panic.

Reported-by: syzbot+8289a3eaf2ba60958c87@syzkaller.appspotmail.com

Revision 1.215 / (download) - annotate - [select for diffs], Sat Jun 27 17:29:19 2020 UTC (3 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, 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-i2c-spi-conf
Changes since 1.214: +3 -3 lines
Diff to previous 1.214 (colored) to selected 1.121 (colored)

Introduce genfs_pathconf() and use it for the default case in all filesystems.

Revision 1.214 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.213: +6 -6 lines
Diff to previous 1.213 (colored) to selected 1.121 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.213 / (download) - annotate - [select for diffs], Sat May 16 18:31:51 2020 UTC (3 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.212: +7 -6 lines
Diff to previous 1.212 (colored) to selected 1.121 (colored)

Add ACL support for FFS. From FreeBSD.

Revision 1.212 / (download) - annotate - [select for diffs], Wed Apr 29 01:56:54 2020 UTC (3 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.211: +33 -23 lines
Diff to previous 1.211 (colored) to selected 1.121 (colored)

If the procfs mount is marked as linux-compat, then allow proc lookup
by any LWP ID in the proc, not just the canonical PID.

Revision 1.210.4.1 / (download) - annotate - [select for diffs], Sat Apr 25 11:24:06 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.210: +22 -24 lines
Diff to previous 1.210 (colored) next main 1.211 (colored) to selected 1.121 (colored)

Sync with bouyer-xenpvh-base2 (HEAD)

Revision 1.211 / (download) - annotate - [select for diffs], Tue Apr 21 21:42:47 2020 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenpvh-base2
Changes since 1.210: +22 -24 lines
Diff to previous 1.210 (colored) to selected 1.121 (colored)

Revert the changes made in February to make cwdinfo use mostly lockless,
which relied on taking extra vnode refs.

Having benchmarked various experimental changes over the past few months it
seems that it's better to avoid vnode refs as much as possible.  cwdi_lock
as a RW lock already did that to some extent for getcwd() and will permit
the same for namei() too.

Revision 1.203.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:05 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.203.2.1: +49 -24 lines
Diff to previous 1.203.2.1 (colored) to branchpoint 1.203 (colored) next main 1.204 (colored) to selected 1.121 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.207.2.2 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:04 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.207.2.1: +5 -4 lines
Diff to previous 1.207.2.1 (colored) to branchpoint 1.207 (colored) next main 1.208 (colored) to selected 1.121 (colored)

Sync with head.

Revision 1.210 / (download) - annotate - [select for diffs], Mon Feb 24 20:47:41 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base1, bouyer-xenpvh-base, ad-namecache-base3
Branch point for: bouyer-xenpvh
Changes since 1.209: +3 -3 lines
Diff to previous 1.209 (colored) to selected 1.121 (colored)

v_interlock -> vmobjlock

Revision 1.209 / (download) - annotate - [select for diffs], Sun Feb 23 22:14:04 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.208: +25 -23 lines
Diff to previous 1.208 (colored) to selected 1.121 (colored)

Merge from ad-namecache:

- Have a stab at clustering the members of vnode_t and vnode_impl_t in a
  more cache-conscious way.  With that done, go back to adjusting v_usecount
  with atomics and keep vi_lock directly in vnode_impl_t (saves KVA).

- Allow VOP_LOCK(LK_NONE) for the benefit of VFS_VGET() and VFS_ROOT().
  Make sure LK_UPGRADE always comes with LK_NOWAIT.

- Make cwdinfo use mostly lockless.

Revision 1.208 / (download) - annotate - [select for diffs], Sat Feb 1 02:23:04 2020 UTC (4 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.207: +4 -3 lines
Diff to previous 1.207 (colored) to selected 1.121 (colored)

Load struct filedesc::fd_dt with atomic_load_consume.

Exceptions: when fd_refcnt <= 1, or when holding fd_lock.

While here:

- Restore KASSERT(mutex_owned(&fdp->fd_lock)) in fd_unused.
  => This is used only in fd_close and fd_abort, where it holds.
- Move bounds check assertion in fd_putfile to where it matters.
- Store fd_dt with atomic_store_release.
- Move load of fd_dt under lock in knote_fdclose.
- Omit membar_consumer in fdesc_readdir.
  => atomic_load_consume serves the same purpose now.
  => Was needed only on alpha anyway.

Revision 1.207.2.1 / (download) - annotate - [select for diffs], Sat Jan 25 15:54:04 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.207: +25 -23 lines
Diff to previous 1.207 (colored) to selected 1.121 (colored)

Make cwdinfo use mostly lockless, and largely hide the details in vfs_cwd.c.

Revision 1.206.4.1 / (download) - annotate - [select for diffs], Sun Sep 1 11:02:27 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.206: +24 -2 lines
Diff to previous 1.206 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by hannken in ticket #132):
	sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
	sys/miscfs/procfs/procfs_vnops.c: revision 1.207
Add missing operation VOP_GETPAGES() returning EFAULT.
Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.
Observed by maxv@

Revision 1.197.2.3 / (download) - annotate - [select for diffs], Thu Aug 29 16:28:47 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.197.2.2: +24 -2 lines
Diff to previous 1.197.2.2 (colored) to branchpoint 1.197 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by hannken in ticket #1346):

	sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
	sys/miscfs/procfs/procfs_vnops.c: revision 1.207

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

Revision 1.191.4.1 / (download) - annotate - [select for diffs], Thu Aug 29 16:15:35 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-7-0
Changes since 1.191: +24 -2 lines
Diff to previous 1.191 (colored) next main 1.192 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by hannken in ticket #1703):

	sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
	sys/miscfs/procfs/procfs_vnops.c: revision 1.207

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

Revision 1.191.8.1 / (download) - annotate - [select for diffs], Thu Aug 29 16:14:37 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-7-1
Changes since 1.191: +24 -2 lines
Diff to previous 1.191 (colored) next main 1.192 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by hannken in ticket #1703):

	sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
	sys/miscfs/procfs/procfs_vnops.c: revision 1.207

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

Revision 1.191.2.1 / (download) - annotate - [select for diffs], Thu Aug 29 16:13:37 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-7
Changes since 1.191: +24 -2 lines
Diff to previous 1.191 (colored) next main 1.192 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by hannken in ticket #1703):

	sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
	sys/miscfs/procfs/procfs_vnops.c: revision 1.207

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

Revision 1.207 / (download) - annotate - [select for diffs], Thu Aug 29 06:43:13 2019 UTC (4 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.206: +24 -2 lines
Diff to previous 1.206 (colored) to selected 1.121 (colored)

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

Revision 1.203.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:06 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.203: +25 -22 lines
Diff to previous 1.203 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.206 / (download) - annotate - [select for diffs], Sat Mar 30 23:28:30 2019 UTC (5 years ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.205: +19 -16 lines
Diff to previous 1.205 (colored) to selected 1.121 (colored)

add a node for the process resource limits.

Revision 1.202.2.3 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:45 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.202.2.2: +4 -4 lines
Diff to previous 1.202.2.2 (colored) to branchpoint 1.202 (colored) next main 1.203 (colored) to selected 1.121 (colored)

Sync with head

Revision 1.205 / (download) - annotate - [select for diffs], Sun Oct 14 17:37:40 2018 UTC (5 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020
Changes since 1.204: +4 -4 lines
Diff to previous 1.204 (colored) to selected 1.121 (colored)

remove M_CANFAIL flag for malloc(9) - it was completely ignored, so had
actually no effect

Revision 1.202.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:43 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.202.2.1: +6 -6 lines
Diff to previous 1.202.2.1 (colored) to branchpoint 1.202 (colored) to selected 1.121 (colored)

Sync with HEAD

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

Revision 1.204 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.203: +6 -6 lines
Diff to previous 1.203 (colored) to selected 1.121 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.202.2.1 / (download) - annotate - [select for diffs], Mon Apr 16 02:00:08 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.202: +23 -13 lines
Diff to previous 1.202 (colored) to selected 1.121 (colored)

Sync with HEAD, resolve some conflicts

Revision 1.197.2.2 / (download) - annotate - [select for diffs], Thu Apr 12 13:42:48 2018 UTC (5 years, 11 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.197.2.1: +2 -5 lines
Diff to previous 1.197.2.1 (colored) to branchpoint 1.197 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by kamil in ticket #713):

	sys/modules/procfs/Makefile: revision 1.4
	sys/miscfs/procfs/procfs_vfsops.c: revision 1.98
	bin/ps/ps.1: revision 1.108
	sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.32
	sys/miscfs/procfs/procfs_vnops.c: revision 1.198
	sys/kern/sys_ptrace_common.c: revision 1.23
	sys/kern/sys_ptrace_common.c: revision 1.24
	sbin/mount_procfs/mount_procfs.8: revision 1.36
	sys/kern/sys_ptrace_common.c: revision 1.25
	sys/kern/sys_ptrace.c: revision 1.5
	sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.30
	sys/sys/proc.h: revision 1.342
	sys/kern/sys_ptrace_common.c: revision 1.26
	sys/miscfs/procfs/procfs_ctl.c: file removal
	sys/kern/sys_ptrace_common.c: revision 1.27
	sys/miscfs/procfs/procfs_subr.c: revision 1.109
	sys/kern/sys_ptrace_common.c: revision 1.28
	sys/secmodel/extensions/secmodel_extensions.c: revision 1.8
	sys/kern/sys_ptrace_common.c: revision 1.29
	sys/sys/ptrace.h: revision 1.62
	sys/compat/netbsd32/netbsd32_signal.c: revision 1.45
	share/man/man9/kauth.9: revision 1.109
	sys/miscfs/procfs/files.procfs: revision 1.12
	sys/compat/netbsd32/netbsd32.h: revision 1.115
	sys/miscfs/procfs/procfs.h: revision 1.72
	sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.5
	sys/kern/kern_sig.c: revision 1.337
	sys/sys/kauth.h: revision 1.75
	sys/sys/sysctl.h: revision 1.224
	sys/kern/sys_ptrace_common.c: revision 1.30
	sys/kern/sys_ptrace_common.c: revision 1.31
	sys/kern/sys_ptrace_common.c: revision 1.32
	sys/kern/sys_ptrace_common.c: revision 1.33
	sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.20
	sys/kern/sys_ptrace_common.c: revision 1.34
	sys/kern/sys_ptrace_common.c: revision 1.36
	sys/kern/kern_proc.c: revision 1.207
	sys/kern/kern_exit.c: revision 1.269
	doc/TODO.ptrace: revision 1.29

Make {s,g}et{db,fp,}regs work again for PK_32 processes
XXX: pullup-8

add disgusting magic to handle compat_netbsd32 as a module.

use process_*reg32 instead of struct *reg32.

Remove the filesystem tracing feature

This is a legacy interface from 4.4BSD, and it was
introduced to overcome shortcomings of ptrace(2) at that time, which are
no longer relevant (performance). Today /proc/#/ctl offers a narrow
subset of ptrace(2) commands and is not applicable for modern
applications use beyond simplistic tracing scenarios.

This removal will simplify kernel internals. Users will still be able to
use all the other /proc files.

This change won't affect other procfs files neither Linux compat
features within mount_procfs(8). /proc/#/ctl isn't available on Linux.

Remove:
 - /proc/#/ctl from mount_procfs(8)
 - P_FSTRACE note from the documentation of ps(1)
 - /proc/#/ctl and filesystem tracing documentation from mount_procfs(8)
 - KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9)
 - source code file miscfs/procfs/procfs_ctl.c
 - PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h
 - KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h
 - PSL_FSTRACE (0x00010000) from sys/sys/proc.h
 - P_FSTRACE (0x00010000) from sys/sys/sysctl.h

Reduce code complexity after removal of this functionality.

Update TODO.ptrace accordingly: remove two entries about /proc tracing.

Do not keep legacy notes as comments in the headers about removed

PSL_FSTRACE / P_FSTRACE, as this interface had little number of users
(close or equal to zero).
Proposed on tech-kern@.

All filesystem tracing utility users are encouraged to switch to ptrace(2).

Sponsored by <The NetBSD Foundation>

untangle the mess:
- factor out common code
- break each ptrace subcall to its own sub-function
  .. more to come ...
- reduce ifdef ugliness by moving it up top.
- factor out PT_IO and make PT_{READ,WRITE}_{I,D} use it
- factor out PT_DUMPCORE
- factor out sendsig code
  .. more to come ...

handle siginfo requests for ptrace32

ptrace: Partially undo PT_{READ,WRITE}_{I,D} and unbreak these commands

The refactored code did not work and was generating EFAULT.

Sponsored by <The NetBSD Foundation>

Merge the code back; the problem was that since we are reading/writing
to a kernel address for PT_{READ,WRITE}_{I,D} we need the kernel vmspace.
provide separate read and write functions to accomodate register functions
that need a size argument.

don't ignore error from copyout_piod

Use the proper process (the tracee) to get information about lwps and
registers and the tracer for vmspace.

Add new sysctl(3) entry: security.models.extensions.user_set_dbregs

Model this new sysctl(3) entry after "user_set_cpu_affinity" in the same
level of sysctl(3) switches.

Allow to read unconditionally Debug Registers (no change here). This is
convenient as even if a user of a debugger does not use hardware assisted
watchpoints/breakpoints, a debugger can still prompt these values to store
in an internal cache with context of registers. Reading them should have
no security concerns.

Add a paranoid MI switch that prohibits by default setting these registers
by a regular user (non-superuser). Make this switch disabled by default.
There are enough reserved bits out there to allow using them
unconditionally on hardened hosts.

Features shipped with Debug Registers are optional features in debuggers.
There is no reduction in elementary functionality.

Reviewed by <christos>

Sponsored by <The NetBSD Foundation>

Revision 1.197.2.1 / (download) - annotate - [select for diffs], Sun Apr 8 06:10:24 2018 UTC (5 years, 11 months ago) by snj
Branch: netbsd-8
Changes since 1.197: +23 -13 lines
Diff to previous 1.197 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by hannken in ticket #702):
	sys/miscfs/procfs/procfs_vnops.c: 1.203
Lock the target cwdi and take an additional reference to the
vnode we are interested in to prevent it from disappearing
before getcwd_common().
Should fix PR kern/53096 (netbsd-8 crash on heavy disk I/O)

Revision 1.203 / (download) - annotate - [select for diffs], Sat Apr 7 13:42:42 2018 UTC (5 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415
Branch point for: phil-wifi
Changes since 1.202: +23 -13 lines
Diff to previous 1.202 (colored) to selected 1.121 (colored)

Lock the target cwdi and take an additional reference to the
vnode we are interested in to prevent it from disappearing
before getcwd_common().

Should fix PR kern/53096 (netbsd-8 crash on heavy disk I/O)

Revision 1.202 / (download) - annotate - [select for diffs], Sun Dec 31 03:02:23 2017 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.201: +5 -2 lines
Diff to previous 1.201 (colored) to selected 1.121 (colored)

Add an environ node

Revision 1.184.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:48 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.184.2.3: +53 -59 lines
Diff to previous 1.184.2.3 (colored) to branchpoint 1.184 (colored) next main 1.185 (colored) to selected 1.121 (colored)

update from HEAD

Revision 1.201 / (download) - annotate - [select for diffs], Fri Dec 1 19:01:34 2017 UTC (6 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.200: +5 -3 lines
Diff to previous 1.200 (colored) to selected 1.121 (colored)

Allow procfs_kqfilter, since we allow poll. "go" does it.

Revision 1.200 / (download) - annotate - [select for diffs], Wed Nov 8 00:51:47 2017 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.199: +5 -10 lines
Diff to previous 1.199 (colored) to selected 1.121 (colored)

fix locking, remove error(1) comments.

Revision 1.199 / (download) - annotate - [select for diffs], Wed Nov 8 00:42:12 2017 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.198: +27 -44 lines
Diff to previous 1.198 (colored) to selected 1.121 (colored)

use p->p_path, remove unused code.

Revision 1.192.2.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:09 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.192.2.2: +31 -12 lines
Diff to previous 1.192.2.2 (colored) to branchpoint 1.192 (colored) next main 1.193 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.198 / (download) - annotate - [select for diffs], Mon Aug 28 00:46:07 2017 UTC (6 years, 7 months ago) by kamil
Branch: MAIN
Changes since 1.197: +2 -5 lines
Diff to previous 1.197 (colored) to selected 1.121 (colored)

Remove the filesystem tracing feature

This is a legacy interface from 4.4BSD, and it was
introduced to overcome shortcomings of ptrace(2) at that time, which are
no longer relevant (performance). Today /proc/#/ctl offers a narrow
subset of ptrace(2) commands and is not applicable for modern
applications use beyond simplistic tracing scenarios.

This removal will simplify kernel internals. Users will still be able to
use all the other /proc files.

This change won't affect other procfs files neither Linux compat
features within mount_procfs(8). /proc/#/ctl isn't available on Linux.

Remove:
 - /proc/#/ctl from mount_procfs(8)
 - P_FSTRACE note from the documentation of ps(1)
 - /proc/#/ctl and filesystem tracing documentation from mount_procfs(8)
 - KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9)
 - source code file miscfs/procfs/procfs_ctl.c
 - PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h
 - KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h
 - PSL_FSTRACE (0x00010000) from sys/sys/proc.h
 - P_FSTRACE (0x00010000) from sys/sys/sysctl.h

Reduce code complexity after removal of this functionality.

Update TODO.ptrace accordingly: remove two entries about /proc tracing.

Do not keep legacy notes as comments in the headers about removed
PSL_FSTRACE / P_FSTRACE, as this interface had little number of users
(close or equal to zero).

Proposed on tech-kern@.

All filesystem tracing utility users are encouraged to switch to ptrace(2).

Sponsored by <The NetBSD Foundation>

Revision 1.197 / (download) - annotate - [select for diffs], Fri May 26 14:21:01 2017 UTC (6 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.196: +5 -3 lines
Diff to previous 1.196 (colored) to selected 1.121 (colored)

Make VOP_RECLAIM do the last unlock of the vnode.

VOP_RECLAIM naturally has exclusive access to the vnode, so having it
locked on entry is not strictly necessary -- but it means if there
are any final operations that must be done on the vnode, such as
ffs_update, requiring exclusive access to it, we can now kassert that
the vnode is locked in those operations.

We can't just have the caller release the last lock because some file
systems don't use genfs_lock, and require the vnode to remain valid
for VOP_UNLOCK to work, notably unionfs.

Revision 1.193.2.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:28 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.193: +28 -11 lines
Diff to previous 1.193 (colored) next main 1.194 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.194.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:04 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.194: +28 -11 lines
Diff to previous 1.194 (colored) next main 1.195 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.196 / (download) - annotate - [select for diffs], Tue Apr 11 14:25:01 2017 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, bouyer-socketcan-base1
Changes since 1.195: +3 -5 lines
Diff to previous 1.195 (colored) to selected 1.121 (colored)

Make VOP_INACTIVE preserve vnode lock on return.

Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2017/04/01/msg021751.html

Ride 7.99.68, a bumpy bus of incremental vfs improvements!

Revision 1.195 / (download) - annotate - [select for diffs], Thu Mar 30 20:16:29 2017 UTC (7 years ago) by christos
Branch: MAIN
CVS Tags: jdolecek-ncq-base, jdolecek-ncq
Changes since 1.194: +27 -8 lines
Diff to previous 1.194 (colored) to selected 1.121 (colored)

add an auxv node.

Revision 1.192.2.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:03 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.192.2.1: +4 -5 lines
Diff to previous 1.192.2.1 (colored) to branchpoint 1.192 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.194 / (download) - annotate - [select for diffs], Sat Aug 20 12:37:09 2016 UTC (7 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.193: +2 -3 lines
Diff to previous 1.193 (colored) to selected 1.121 (colored)

Remove now obsolete operation vcache_remove().

Welcome to 7.99.36

Revision 1.192.2.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:22 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.192: +3 -4 lines
Diff to previous 1.192 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.193 / (download) - annotate - [select for diffs], Mon Apr 20 23:03:08 2015 UTC (8 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, 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
Branch point for: pgoyette-localcount
Changes since 1.192: +3 -4 lines
Diff to previous 1.192 (colored) to selected 1.121 (colored)

Make VOP_LINK return directory still locked and referenced.

Ride 7.99.10 bump.

Revision 1.192 / (download) - annotate - [select for diffs], Fri Sep 5 09:26:16 2014 UTC (9 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.191: +5 -5 lines
Diff to previous 1.191 (colored) to selected 1.121 (colored)

Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.

Revision 1.184.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:31 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.184.2.2: +24 -36 lines
Diff to previous 1.184.2.2 (colored) to branchpoint 1.184 (colored) to selected 1.121 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.189.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:05 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.189: +23 -11 lines
Diff to previous 1.189 (colored) next main 1.190 (colored) to selected 1.121 (colored)

Rebase.

Revision 1.191 / (download) - annotate - [select for diffs], Sun Jul 27 16:47:26 2014 UTC (9 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: netbsd-7-1, netbsd-7-0, netbsd-7
Changes since 1.190: +21 -11 lines
Diff to previous 1.190 (colored) to selected 1.121 (colored)

Change procfs from hashlist to vcache.
- Key is (type, pid, fd)
- Remove argument "p" from procfs_allocvp().  It is only used
  when "type == PFSfd".  Lookup the proc with proc_find() when
  procfs_loadvnode() needs it.
- Use a vfs_vnode_iterator for procfs_revoke_vnodes().

Revision 1.190 / (download) - annotate - [select for diffs], Fri Jul 25 08:20:52 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.189: +4 -2 lines
Diff to previous 1.189 (colored) to selected 1.121 (colored)

Add VOP_FALLOCATE and VOP_FDISCARD to every vnode ops table I can
find.

The filesystem ones all call genfs_eopnotsupp - right now I am only
implementing the plumbing and we can implement fallocate and/or
fdiscard for files later.

The device ones call spec_fallocate (which is also genfs_eopnotsupp)
and spec_fdiscard, which dispatches to the device-level op.

The fifo ones all call vn_fifo_bypass, which also ends up being
EOPNOTSUPP.

Revision 1.182.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:41:05 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.182.2.3: +7 -31 lines
Diff to previous 1.182.2.3 (colored) to branchpoint 1.182 (colored) next main 1.183 (colored) to selected 1.121 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.186.6.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:09 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.186: +6 -30 lines
Diff to previous 1.186 (colored) next main 1.187 (colored) to selected 1.121 (colored)

sync with head

Revision 1.189 / (download) - annotate - [select for diffs], Fri Feb 7 15:29:22 2014 UTC (10 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.188: +5 -28 lines
Diff to previous 1.188 (colored) to selected 1.121 (colored)

Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31

Revision 1.188 / (download) - annotate - [select for diffs], Thu Jan 23 10:13:57 2014 UTC (10 years, 2 months ago) by hannken
Branch: MAIN
Changes since 1.187: +3 -3 lines
Diff to previous 1.187 (colored) to selected 1.121 (colored)

Change vnode operations create, mknod, mkdir and symlink to return
the resulting vnode *vpp unlocked.

Discussed on tech-kern@

Welcome to 6.99.30

Revision 1.187 / (download) - annotate - [select for diffs], Fri Jan 17 10:55:02 2014 UTC (10 years, 2 months ago) by hannken
Branch: MAIN
Changes since 1.186: +3 -4 lines
Diff to previous 1.186 (colored) to selected 1.121 (colored)

Change vnode operations create, mknod, mkdir and symlink to keep the
directory node dvp locked on return.

Discussed on tech-kern@

Welcome to 6.99.29

Revision 1.184.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:24 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.184.2.1: +3 -3 lines
Diff to previous 1.184.2.1 (colored) to branchpoint 1.184 (colored) to selected 1.121 (colored)

resync from head

Revision 1.186 / (download) - annotate - [select for diffs], Mon Mar 18 19:35:44 2013 UTC (11 years ago) by plunky
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.185: +3 -3 lines
Diff to previous 1.185 (colored) to selected 1.121 (colored)

C99 section 6.7.2.3 (Tags) Note 3 states that:

  A type specifier of the form

	enum identifier

  without an enumerator list shall only appear after the type it
  specifies is complete.

which means that we cannot pass an "enum vtype" argument to
kauth_access_action() without fully specifying the type first.
Unfortunately there is a complicated include file loop which
makes that difficult, so convert this minimal function into a
macro (and capitalize it).

(ok elad@)

Revision 1.184.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:59 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.184: +6 -2 lines
Diff to previous 1.184 (colored) to selected 1.121 (colored)

resync with head

Revision 1.182.2.3 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:46 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.182.2.2: +6 -2 lines
Diff to previous 1.182.2.2 (colored) to branchpoint 1.182 (colored) to selected 1.121 (colored)

sync with (a bit old) head

Revision 1.185 / (download) - annotate - [select for diffs], Sun Nov 25 01:03:05 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7
Changes since 1.184: +6 -2 lines
Diff to previous 1.184 (colored) to selected 1.121 (colored)

do something reasonable with kernel semaphores.

Revision 1.182.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:40 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.182.2.1: +104 -4 lines
Diff to previous 1.182.2.1 (colored) to branchpoint 1.182 (colored) to selected 1.121 (colored)

sync with head

Revision 1.182.6.2 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:37 2012 UTC (11 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.182.6.1: +102 -2 lines
Diff to previous 1.182.6.1 (colored) to branchpoint 1.182 (colored) next main 1.183 (colored) to selected 1.121 (colored)

sync to latest -current.

Revision 1.184 / (download) - annotate - [select for diffs], Mon May 28 13:16:10 2012 UTC (11 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base6, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.183: +104 -4 lines
Diff to previous 1.183 (colored) to selected 1.121 (colored)

add a task process subdirectory for emul linux

Revision 1.182.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:35 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.182: +6 -24 lines
Diff to previous 1.182 (colored) to selected 1.121 (colored)

sync with head

Revision 1.182.6.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:42 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.182: +6 -24 lines
Diff to previous 1.182 (colored) to selected 1.121 (colored)

sync to latest -current.

Revision 1.183 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:58 2012 UTC (12 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8
Changes since 1.182: +6 -24 lines
Diff to previous 1.182 (colored) to selected 1.121 (colored)

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

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

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

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

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

Revision 1.182 / (download) - annotate - [select for diffs], Sun Sep 4 17:32:10 2011 UTC (12 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.181: +5 -2 lines
Diff to previous 1.181 (colored) to selected 1.121 (colored)

PR# kern/45021: Please support /emul/linux/proc/version

Add /proc/version for procfs with -o linux. The version reported depends
on the emulation type of the calling process:

$ cat /proc/version
NetBSD version 5.99.55 (netbsd@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) NetBSD 5.99.55 (GENERIC) #39: Sun Sep  4 09:10:05 EDT 2011

$ /emul/linux/bin/cat /proc/version
Linux version 2.6.18 (linux@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) #0 Wed Mar 3 03:03:03 PST 2010

$ /emul/linux32/bin/cat /proc/version
Linux version 2.6.18 (linux32@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) #0 Wed Mar 3 03:03:03 PST 2010

Revision 1.181 / (download) - annotate - [select for diffs], Thu Jun 23 17:06:38 2011 UTC (12 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.180: +4 -2 lines
Diff to previous 1.180 (colored) to selected 1.121 (colored)

From Aleksey Cheusov: Don't make it easy for compromised systems to bypass
ASLR protections by providing the mapping addresses of programs to everyone.

Revision 1.177.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:39 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.177: +7 -8 lines
Diff to previous 1.177 (colored) next main 1.178 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.168.2.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:48 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.168.2.5: +7 -8 lines
Diff to previous 1.168.2.5 (colored) to branchpoint 1.168 (colored) next main 1.169 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.177.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:58 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.177: +7 -8 lines
Diff to previous 1.177 (colored) next main 1.178 (colored) to selected 1.121 (colored)

sync with head

Revision 1.180 / (download) - annotate - [select for diffs], Thu Jul 1 02:38:31 2010 UTC (13 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.179: +3 -3 lines
Diff to previous 1.179 (colored) to selected 1.121 (colored)

Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.

Revision 1.179 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:17 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.178: +5 -5 lines
Diff to previous 1.178 (colored) to selected 1.121 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.178 / (download) - annotate - [select for diffs], Tue Jun 8 08:24:16 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.177: +3 -4 lines
Diff to previous 1.177 (colored) to selected 1.121 (colored)

Procfs_lookup() does not lookup directory descriptors in the fd/
subdirectory.  There is no need for recursive vnode locking here.

Ok: Christos Zoulas <christos@netbsd.org>

Revision 1.168.2.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:23 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.168.2.4: +6 -6 lines
Diff to previous 1.168.2.4 (colored) to branchpoint 1.168 (colored) to selected 1.121 (colored)

sync with head

Revision 1.177 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:11 2010 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.176: +6 -6 lines
Diff to previous 1.176 (colored) to selected 1.121 (colored)

The VATTR_NULL/VREF/VHOLD/HOLDRELE() macros lost their will to live
years ago when the kernel was modified to not alter ABI based on
DIAGNOSTIC, and now just call the respective function interfaces
(in lowercase).  Plenty of mix'n match upper/lowercase has creeped
into the tree since then.  Nuke the macros and convert all callsites
to lowercase.

no functional change

Revision 1.173.2.1 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:46 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.173: +25 -5 lines
Diff to previous 1.173 (colored) next main 1.174 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.168.2.4 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:24 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.168.2.3: +24 -4 lines
Diff to previous 1.168.2.3 (colored) to branchpoint 1.168 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.176 / (download) - annotate - [select for diffs], Fri Jul 3 21:17:42 2009 UTC (14 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.175: +24 -4 lines
Diff to previous 1.175 (colored) to selected 1.121 (colored)

Where possible, extract the file-system's access() routine to two internal
functions: the first checking if the operation is possible (regardless of
permissions), the second checking file-system permissions, ACLs, etc.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005311.html

Revision 1.175 / (download) - annotate - [select for diffs], Tue Jun 23 19:36:40 2009 UTC (14 years, 9 months ago) by elad
Branch: MAIN
Changes since 1.174: +3 -3 lines
Diff to previous 1.174 (colored) to selected 1.121 (colored)

Move the implementation of vaccess() to genfs_can_access(), in line with
the other routines of the same spirit.

Adjust file-system code to use it.

Keep vaccess() for KPI compatibility and to keep element of least
surprise. A "diagnostic" message warning that vaccess() is deprecated will
be printed when it's used (obviously, only in DIAGNOSTIC kernels).

No objections on tech-kern@:

	http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005310.html

Revision 1.168.2.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:32 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.168.2.2: +3 -3 lines
Diff to previous 1.168.2.2 (colored) to branchpoint 1.168 (colored) to selected 1.121 (colored)

sync with head

Revision 1.174 / (download) - annotate - [select for diffs], Sun May 24 21:41:26 2009 UTC (14 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5
Changes since 1.173: +3 -3 lines
Diff to previous 1.173 (colored) to selected 1.121 (colored)

More changes to improve kern_descrip.c.

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

Some measurements with libmicro:

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

Revision 1.168.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:05 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.168.2.1: +39 -45 lines
Diff to previous 1.168.2.1 (colored) to branchpoint 1.168 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.172.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:06 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.172: +4 -6 lines
Diff to previous 1.172 (colored) next main 1.173 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.165.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:28 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.165.6.3: +2 -4 lines
Diff to previous 1.165.6.3 (colored) to branchpoint 1.165 (colored) next main 1.166 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.173 / (download) - annotate - [select for diffs], Wed Dec 17 20:51:36 2008 UTC (15 years, 3 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, jym-xensuspend-base
Branch point for: jym-xensuspend
Changes since 1.172: +4 -6 lines
Diff to previous 1.172 (colored) to selected 1.121 (colored)

kill MALLOC and FREE macros.

Revision 1.170.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:41 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.170: +35 -41 lines
Diff to previous 1.170 (colored) next main 1.171 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.165.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:55 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.165.6.2: +35 -39 lines
Diff to previous 1.165.6.2 (colored) to branchpoint 1.165 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.169.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:58 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.169: +37 -41 lines
Diff to previous 1.169 (colored) next main 1.170 (colored) to selected 1.121 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.172 / (download) - annotate - [select for diffs], Fri Sep 5 14:01:11 2008 UTC (15 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, 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-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, 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, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.171: +20 -9 lines
Diff to previous 1.171 (colored) to selected 1.121 (colored)

PR/39324 kernel diagnostic assertion "l->l_stat != LSZOMB" failed.

Ignore procs with zero or all LSZOMB LWPs. Get a non-LSZOMB LWP to perform
operations against as part of the deal.

procfs really needs to be updated to support multi-threading fully.
Hi Antti!

Revision 1.171 / (download) - annotate - [select for diffs], Fri Sep 5 13:21:12 2008 UTC (15 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.170: +17 -34 lines
Diff to previous 1.170 (colored) to selected 1.121 (colored)

ANSIfy

Revision 1.169.4.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:18 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.169: +6 -4 lines
Diff to previous 1.169 (colored) next main 1.170 (colored) to selected 1.121 (colored)

Sync with head.

Revision 1.170 / (download) - annotate - [select for diffs], Wed Jul 2 19:49:58 2008 UTC (15 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.169: +6 -4 lines
Diff to previous 1.169 (colored) to selected 1.121 (colored)

Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
OK by <ad>.

Revision 1.165.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:20 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.165.6.1: +13 -20 lines
Diff to previous 1.165.6.1 (colored) to branchpoint 1.165 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.166.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:26 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.166: +15 -22 lines
Diff to previous 1.166 (colored) next main 1.167 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.168.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:39 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.168: +2 -9 lines
Diff to previous 1.168 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.169 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:08 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.168: +2 -9 lines
Diff to previous 1.168 (colored) to selected 1.121 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.168 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:25 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.167: +11 -11 lines
Diff to previous 1.167 (colored) to selected 1.121 (colored)

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.167 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.166: +6 -6 lines
Diff to previous 1.166 (colored) to selected 1.121 (colored)

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

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

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

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

Revision 1.165.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:06 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.165: +18 -27 lines
Diff to previous 1.165 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.123.2.10 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:09 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.123.2.9: +18 -27 lines
Diff to previous 1.123.2.9 (colored) next main 1.124 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.158.6.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:04 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.158.6.3: +14 -9 lines
Diff to previous 1.158.6.3 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored) to selected 1.121 (colored)

sync with HEAD

Revision 1.166 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.165: +18 -27 lines
Diff to previous 1.165 (colored) to selected 1.121 (colored)

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

Revision 1.160.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:00 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.160.4.2: +15 -14 lines
Diff to previous 1.160.4.2 (colored) to branchpoint 1.160 (colored) next main 1.161 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.123.2.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:34 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.123.2.8: +14 -9 lines
Diff to previous 1.123.2.8 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.163.6.2 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:43 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.163.6.1: +12 -7 lines
Diff to previous 1.163.6.1 (colored) to branchpoint 1.163 (colored) next main 1.164 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.165 / (download) - annotate - [select for diffs], Wed Jan 23 15:04:40 2008 UTC (16 years, 2 months ago) by elad
Branch: 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, bouyer-xeni386-nbase
Branch point for: mjf-devfs2
Changes since 1.164: +14 -9 lines
Diff to previous 1.164 (colored) to selected 1.121 (colored)

Tons of process scope changes.

  - Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related
    requests, and add specific requests for set/get scheduler policy and
    set/get scheduler parameters.

  - Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related
    requests.

  - Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI.

  - Add requests for the KAUTH_PROCESS_CANSEE action, indicating what
    process information is being looked at (entry itself, args, env,
    open files).

  - Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get.

  - Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get.

  - Make bsd44 secmodel code handle the newly added rqeuests appropriately.

All of the above make it possible to issue finer-grained kauth(9) calls in
many places, removing some KAUTH_GENERIC_ISSUSER requests.

  - Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}.

Discussed with christos@ and yamt@.

Revision 1.123.2.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:56 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.123.2.7: +3 -7 lines
Diff to previous 1.123.2.7 (colored) to selected 1.121 (colored)

sync with head

Revision 1.158.6.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:06 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.158.6.2: +9 -17 lines
Diff to previous 1.158.6.2 (colored) to branchpoint 1.158 (colored) to selected 1.121 (colored)

sync with HEAD

Revision 1.163.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:56 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.163: +3 -7 lines
Diff to previous 1.163 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.164 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:01 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-base
Changes since 1.163: +3 -7 lines
Diff to previous 1.163 (colored) to selected 1.121 (colored)

Merge vmlocking2 to head.

Revision 1.160.4.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:03 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.160.4.1: +4 -8 lines
Diff to previous 1.160.4.1 (colored) to branchpoint 1.160 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.123.2.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:10 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.123.2.6: +4 -8 lines
Diff to previous 1.123.2.6 (colored) to selected 1.121 (colored)

sync with head

Revision 1.163.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:28 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.163: +3 -7 lines
Diff to previous 1.163 (colored) next main 1.164 (colored) to selected 1.121 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.158.4.3 / (download) - annotate - [select for diffs], Tue Nov 27 19:38:52 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.158.4.2: +4 -8 lines
Diff to previous 1.158.4.2 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored) to selected 1.121 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.163 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:16 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.162: +4 -8 lines
Diff to previous 1.162 (colored) to selected 1.121 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.160.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:49:04 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.160: +59 -69 lines
Diff to previous 1.160 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.123.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:45:00 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.123.2.5: +59 -69 lines
Diff to previous 1.123.2.5 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.160.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:45 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.160: +59 -69 lines
Diff to previous 1.160 (colored) next main 1.161 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.158.4.2 / (download) - annotate - [select for diffs], Sun Nov 11 16:48:23 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.158.4.1: +59 -69 lines
Diff to previous 1.158.4.1 (colored) to branchpoint 1.158 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.162 / (download) - annotate - [select for diffs], Fri Nov 9 22:45:49 2007 UTC (16 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.161: +6 -6 lines
Diff to previous 1.161 (colored) to selected 1.121 (colored)

make the last argument of procfs_dir size_t

Revision 1.158.6.2 / (download) - annotate - [select for diffs], Thu Nov 8 11:00:12 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.158.6.1: +56 -66 lines
Diff to previous 1.158.6.1 (colored) to branchpoint 1.158 (colored) to selected 1.121 (colored)

sync with -HEAD

Revision 1.161 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:38 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.160: +56 -66 lines
Diff to previous 1.160 (colored) to selected 1.121 (colored)

Merge from vmlocking:

- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.

Revision 1.158.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:22 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.158: +5 -5 lines
Diff to previous 1.158 (colored) to selected 1.121 (colored)

sync with HEAD

Revision 1.123.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:56 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.123.2.4: +5 -5 lines
Diff to previous 1.123.2.4 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.158.4.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:56 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.158: +5 -5 lines
Diff to previous 1.158 (colored) to selected 1.121 (colored)

Sync with HEAD.

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

Revision 1.154.2.7 / (download) - annotate - [select for diffs], Thu Oct 25 19:43:12 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.154.2.6: +53 -65 lines
Diff to previous 1.154.2.6 (colored) to branchpoint 1.154 (colored) next main 1.155 (colored) to selected 1.121 (colored)

- Simplify debugger/procfs reference counting of processes. Use a per-proc
  rwlock: rw_tryenter(RW_READER) to gain a reference, and rw_enter(RW_WRITER)
  by the process itself to drain out reference holders before major changes
  like exiting.
- Fix numerous bugs and locking issues in procfs.
- Mark procfs MPSAFE.

Revision 1.158.8.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:56 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.158: +5 -5 lines
Diff to previous 1.158 (colored) next main 1.159 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.160 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:30 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base
Branch point for: mjf-devfs, bouyer-xenamd64
Changes since 1.159: +4 -4 lines
Diff to previous 1.159 (colored) to selected 1.121 (colored)

Merge from vmlocking:

- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.

Revision 1.159 / (download) - annotate - [select for diffs], Mon Oct 8 15:12:10 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.158: +3 -3 lines
Diff to previous 1.158 (colored) to selected 1.121 (colored)

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

Revision 1.140.2.5.2.2 / (download) - annotate - [select for diffs], Sun Sep 30 03:39:14 2007 UTC (16 years, 6 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.140.2.5.2.1: +2 -3 lines
Diff to previous 1.140.2.5.2.1 (colored) next main 1.140.2.6 (colored) to selected 1.121 (colored)

Catch up on netbsd-4 as of a few days ago.

Revision 1.140.2.7 / (download) - annotate - [select for diffs], Thu Sep 27 17:47:47 2007 UTC (16 years, 6 months ago) by xtraeme
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.140.2.6: +0 -1 lines
Diff to previous 1.140.2.6 (colored) to branchpoint 1.140 (colored) next main 1.141 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by martti in ticket #905):
	sys/miscfs/procfs/procfs_vnops.c: revision 1.152

Don't prepend rootvnode to the path in non-NULL case for exe links.
It breaks procfs in chroot.
from <christos>, tested by me.

Revision 1.154.2.6 / (download) - annotate - [select for diffs], Sun Sep 16 19:04:37 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.154.2.5: +4 -9 lines
Diff to previous 1.154.2.5 (colored) to branchpoint 1.154 (colored) to selected 1.121 (colored)

Checkpoint work in progress on the vnode lifecycle and reference counting
stuff. This makes it work properly without kernel_lock and fixes a few
quite old bugs. See vfs_subr.c 1.283.2.17 for details.

Revision 1.123.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:57 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.123.2.3: +51 -14 lines
Diff to previous 1.123.2.3 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.140.2.5.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:05:08 2007 UTC (16 years, 6 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.140.2.5: +28 -7 lines
Diff to previous 1.140.2.5 (colored) to selected 1.121 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.154.2.5 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:51 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.154.2.4: +28 -7 lines
Diff to previous 1.154.2.4 (colored) to branchpoint 1.154 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.157.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:36 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.157: +28 -7 lines
Diff to previous 1.157 (colored) next main 1.158 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.140.2.6 / (download) - annotate - [select for diffs], Mon Jul 23 13:30:22 2007 UTC (16 years, 8 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: netbsd-4-0-RC1
Changes since 1.140.2.5: +28 -7 lines
Diff to previous 1.140.2.5 (colored) to branchpoint 1.140 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by pooka in ticket #785):
	sys/miscfs/procfs/procfs_vnops.c: revision 1.158
Don't allow getcwd() on procfs vnodes and provide "/" as the path
instead of the result from getcwd().  The works around locking
panics caused by namei calling VOP_READLINK while holding on to a
directory lock and getcwd() trying to acquire that lock.  The real
fix would be to get rid of getcwd() calls within VOPs (not locking
safe), but that's not a viable option in the netbsd-4 timeframe.
Suggestion for workaround from David Holland.

Revision 1.158.10.2 / (download) - annotate - [select for diffs], Sun Jul 22 13:37:14 2007 UTC (16 years, 8 months ago) by pooka
Branch: matt-mips64
Changes since 1.158.10.1: +1665 -0 lines
Diff to previous 1.158.10.1 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored) to selected 1.121 (colored)

Don't allow getcwd() on procfs vnodes and provide "/" as the path
instead of the result from getcwd().  The works around locking
panics caused by namei calling VOP_READLINK while holding on to a
directory lock and getcwd() trying to acquire that lock.  The real
fix would be to get rid of getcwd() calls within VOPs (not locking
safe), but that's not a viable option in the netbsd-4 timeframe.

Suggestion for workaround from David Holland.

Revision 1.158.10.1, Sun Jul 22 13:37:13 2007 UTC (16 years, 8 months ago) by pooka
Branch: matt-mips64
Changes since 1.158: +0 -1665 lines
FILE REMOVED

file procfs_vnops.c was added on branch matt-mips64 on 2007-07-22 13:37:14 +0000

Revision 1.158 / (download) - annotate - [select for diffs], Sun Jul 22 13:37:13 2007 UTC (16 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.157: +28 -7 lines
Diff to previous 1.157 (colored) to selected 1.121 (colored)

Don't allow getcwd() on procfs vnodes and provide "/" as the path
instead of the result from getcwd().  The works around locking
panics caused by namei calling VOP_READLINK while holding on to a
directory lock and getcwd() trying to acquire that lock.  The real
fix would be to get rid of getcwd() calls within VOPs (not locking
safe), but that's not a viable option in the netbsd-4 timeframe.

Suggestion for workaround from David Holland.

Revision 1.154.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:46 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.154: +15 -4 lines
Diff to previous 1.154 (colored) next main 1.155 (colored) to selected 1.121 (colored)

Sync with head.

Revision 1.154.2.4 / (download) - annotate - [select for diffs], Sun Jun 17 21:31:44 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.154.2.3: +9 -6 lines
Diff to previous 1.154.2.3 (colored) to branchpoint 1.154 (colored) to selected 1.121 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.154.2.3 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:34 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.154.2.2: +11 -2 lines
Diff to previous 1.154.2.2 (colored) to branchpoint 1.154 (colored) to selected 1.121 (colored)

Sync with head.

Revision 1.157 / (download) - annotate - [select for diffs], Thu May 24 00:37:41 2007 UTC (16 years, 10 months ago) by agc
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.156: +11 -2 lines
Diff to previous 1.156 (colored) to selected 1.121 (colored)

Extend the Linux emulation of /proc to include

	/proc/stat
	/proc/loadavg and
	/proc/<pid>/statm.

These are only present when -o linux is specified as a mount option
to procfs.

Factor out some common code so that it can be used by a number of
functions.

XXX The values returned in the statm emulation need to be verified.

Revision 1.148.2.3 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:56 2007 UTC (16 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.148.2.2: +6 -4 lines
Diff to previous 1.148.2.2 (colored) next main 1.149 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.154.2.2 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:44 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.154.2.1: +6 -4 lines
Diff to previous 1.154.2.1 (colored) to branchpoint 1.154 (colored) to selected 1.121 (colored)

Sync with head.

Revision 1.156 / (download) - annotate - [select for diffs], Wed Apr 4 10:50:42 2007 UTC (16 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic
Changes since 1.155: +5 -3 lines
Diff to previous 1.155 (colored) to selected 1.121 (colored)

Unfortunately, missed procfs_proc_unlock() in previous.
Pointed out by pooka@

Revision 1.155 / (download) - annotate - [select for diffs], Wed Apr 4 01:27:32 2007 UTC (16 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.154: +6 -6 lines
Diff to previous 1.154 (colored) to selected 1.121 (colored)

procfs_readlink: Handle a possible fail of fd_getfile(), also, we
do not need to check for error again.
CID: 4436

Revision 1.140.2.5 / (download) - annotate - [select for diffs], Sat Mar 31 16:13:18 2007 UTC (17 years ago) by bouyer
Branch: netbsd-4
Branch point for: wrstuden-fixsa
Changes since 1.140.2.4: +10 -5 lines
Diff to previous 1.140.2.4 (colored) to branchpoint 1.140 (colored) to selected 1.121 (colored)

pull up the following revisions (requested by pooka in ticket #537):
	sys/miscfs/procfs/procfs_vnops.c	1.148, 1.150-1.151 via patch
Fixes a panic when doing stat */exe.

Revision 1.154.2.1 / (download) - annotate - [select for diffs], Wed Mar 21 20:11:56 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.154: +4 -4 lines
Diff to previous 1.154 (colored) to selected 1.121 (colored)

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

Revision 1.148.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:08 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.148.2.1: +12 -7 lines
Diff to previous 1.148.2.1 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.154 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:23 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.153: +4 -4 lines
Diff to previous 1.153 (colored) to selected 1.121 (colored)

- Make the proclist_lock a mutex. The write:read ratio is unfavourable,
  and mutexes are cheaper use than RW locks.
- LOCK_ASSERT -> KASSERT in some places.
- Hold proclist_lock/kernel_lock longer in a couple of places.

Revision 1.153 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:14 2007 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.152: +10 -4 lines
Diff to previous 1.152 (colored) to selected 1.121 (colored)

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

Revision 1.152 / (download) - annotate - [select for diffs], Sat Mar 3 01:18:32 2007 UTC (17 years, 1 month ago) by salo
Branch: MAIN
Changes since 1.151: +2 -3 lines
Diff to previous 1.151 (colored) to selected 1.121 (colored)

Don't prepend rootvnode to the path in non-NULL case for exe links.
It breaks procfs in chroot.

from <christos>, tested by me.

Revision 1.148.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:39 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.148: +21 -10 lines
Diff to previous 1.148 (colored) to selected 1.121 (colored)

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

Revision 1.123.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:31 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.123.2.2: +224 -95 lines
Diff to previous 1.123.2.2 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.151 / (download) - annotate - [select for diffs], Mon Feb 19 00:08:18 2007 UTC (17 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.150: +14 -6 lines
Diff to previous 1.150 (colored) to selected 1.121 (colored)

When checking for file validity under pid/, do proper proc->lwp
lookup (fsvo proper) instead of fiddling directly with the lwp
list.

Revision 1.150 / (download) - annotate - [select for diffs], Sun Feb 18 01:55:26 2007 UTC (17 years, 1 month ago) by pooka
Branch: MAIN
Changes since 1.149: +8 -5 lines
Diff to previous 1.149 (colored) to selected 1.121 (colored)

Don't check for validity of p in lookup for root nodes, since it
will always be NULL.  Rather, just call pt_valid with NULL directly
and let it decide if we're a linux mount or not.

Revision 1.140.2.4 / (download) - annotate - [select for diffs], Sat Feb 17 23:27:50 2007 UTC (17 years, 1 month ago) by tron
Branch: netbsd-4
Changes since 1.140.2.3: +6 -39 lines
Diff to previous 1.140.2.3 (colored) to branchpoint 1.140 (colored) to selected 1.121 (colored)

Apply patch (requested by chs in ticket #422):
- Fix various deadlock problems with nullfs and unionfs.
- Speed up path lookups by upto 25%.

Revision 1.149 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:44 2007 UTC (17 years, 1 month ago) by pavel
Branch: MAIN
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored) to selected 1.121 (colored)

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

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

Reviewed by Andrew Doran.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Feb 16 21:37:56 2007 UTC (17 years, 1 month ago) by pooka
Branch: MAIN
Branch point for: yamt-idlelwp
Changes since 1.147: +8 -6 lines
Diff to previous 1.147 (colored) to selected 1.121 (colored)

In lookup, when checking for procfs process node validity, target the
process we're trying to get information about through procfs, not
the caller of lookup.

fixes 'ls -l /proc/*/file' panic, which would occur when trying to
lookup "file" for a kernel thread, which doesn't have p->p_textvp.

Revision 1.147 / (download) - annotate - [select for diffs], Thu Feb 15 15:35:45 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.146: +5 -3 lines
Diff to previous 1.146 (colored) to selected 1.121 (colored)

Need to acquire procp->p_mutex for procfs_dir().

Revision 1.146 / (download) - annotate - [select for diffs], Sun Feb 11 17:16:08 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.145: +30 -25 lines
Diff to previous 1.145 (colored) to selected 1.121 (colored)

Eliminate a couple of reference count and mutex leaks.

Revision 1.145 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:36 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.144: +186 -77 lines
Diff to previous 1.144 (colored) to selected 1.121 (colored)

Merge newlock2 to head.

Revision 1.133.6.7 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:11 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.133.6.6: +32 -50 lines
Diff to previous 1.133.6.6 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored) to selected 1.121 (colored)

Sync with head.

Revision 1.140.2.3 / (download) - annotate - [select for diffs], Wed Jan 3 22:16:12 2007 UTC (17 years, 2 months ago) by tron
Branch: netbsd-4
Changes since 1.140.2.2: +20 -14 lines
Diff to previous 1.140.2.2 (colored) to branchpoint 1.140 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by elad in ticket #308):
	sys/secmodel/bsd44/secmodel_bsd44_suser.c: revision 1.21 via patch
	sys/miscfs/procfs/procfs_vnops.c: revision 1.144
PR/35226: Johann Franz: Problems with permissions in
/usr/pkg/emul/linux/proc .
Okay mlelstv@

Revision 1.140.2.2 / (download) - annotate - [select for diffs], Wed Jan 3 16:43:04 2007 UTC (17 years, 2 months ago) by tron
Branch: netbsd-4
Changes since 1.140.2.1: +2 -1 lines
Diff to previous 1.140.2.1 (colored) to branchpoint 1.140 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by elad in ticket #307):
	sys/miscfs/procfs/procfs_vnops.c: revision 1.142
From Nicolas Joly: restore previous behavior in procfs_validfile_linux,
since
readdir passes a NULL lwp.

Revision 1.123.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:18 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.123.2.1: +65 -79 lines
Diff to previous 1.123.2.1 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.133.6.6 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:44 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.133.6.5: +2 -3 lines
Diff to previous 1.133.6.5 (colored) to branchpoint 1.133 (colored) to selected 1.121 (colored)

Checkpoint work in progress.

Revision 1.144 / (download) - annotate - [select for diffs], Mon Dec 25 12:13:54 2006 UTC (17 years, 3 months ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.143: +22 -16 lines
Diff to previous 1.143 (colored) to selected 1.121 (colored)

PR/35226: Johann Franz: Problems with permissions in
/usr/pkg/emul/linux/proc .

Okay mlelstv@

Revision 1.133.8.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:59 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.133.8.1: +54 -74 lines
Diff to previous 1.133.8.1 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.143 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:52 2006 UTC (17 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Changes since 1.142: +6 -39 lines
Diff to previous 1.142 (colored) to selected 1.121 (colored)

a smorgasbord of improvements to vnode locking and path lookup:
 - LOCKPARENT is no longer relevant for lookup(), relookup() or VOP_LOOKUP().
   these now always return the parent vnode locked.  namei() works as before.
   lookup() and various other paths no longer acquire vnode locks in the
   wrong order via vrele().  fixes PR 32535.
   as a nice side effect, path lookup is also up to 25% faster.
 - the above allows us to get rid of PDIRUNLOCK.
 - also get rid of WANTPARENT (just use LOCKPARENT and unlock it).
 - remove an assumption in layer_node_find() that all file systems implement
   a recursive VOP_LOCK() (unionfs doesn't).
 - require that all file systems supply vfs_vptofh and vfs_fhtovp routines.
   fill in eopnotsupp() for file systems that don't support being exported
   and remove the checks for NULL.  (layerfs calls these without checking.)
 - in union_lookup1(), don't change refcounts in the ISDOTDOT case, just
   adjust which vnode is locked.  fixes PR 33374.
 - apply fixes for ufs_rename() from ufs_vnops.c rev. 1.61 to ext2fs_rename().

Revision 1.140.2.1 / (download) - annotate - [select for diffs], Wed Dec 6 13:33:08 2006 UTC (17 years, 3 months ago) by tron
Branch: netbsd-4
Changes since 1.140: +18 -16 lines
Diff to previous 1.140 (colored) to selected 1.121 (colored)

Pull up following revision(s) (requested by elad in ticket #248):
	sys/miscfs/procfs/procfs_vnops.c: revision 1.141
Move kauth(9) call to where it belongs. Noticed by Nicolas Joly, thanks!

Revision 1.142 / (download) - annotate - [select for diffs], Mon Dec 4 18:27:52 2006 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.141: +4 -3 lines
Diff to previous 1.141 (colored) to selected 1.121 (colored)

From Nicolas Joly: restore previous behavior in procfs_validfile_linux, since
readdir passes a NULL lwp.

Revision 1.141 / (download) - annotate - [select for diffs], Sun Dec 3 13:24:10 2006 UTC (17 years, 3 months ago) by elad
Branch: MAIN
Changes since 1.140: +18 -16 lines
Diff to previous 1.140 (colored) to selected 1.121 (colored)

Move kauth(9) call to where it belongs. Noticed by Nicolas Joly, thanks!

Revision 1.140 / (download) - annotate - [select for diffs], Tue Nov 28 17:27:09 2006 UTC (17 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.139: +18 -5 lines
Diff to previous 1.139 (colored) to selected 1.121 (colored)

Move ktrace, ptrace, systrace, and procfs to use kauth(9).

First, remove process_checkioperm() calls from MD code. Similar checks
using kauth(9) routines (on the process scope, using appropriate action)
are done in the callers.

Add secmodel back-end to handle each subsystem.

Revision 1.139 / (download) - annotate - [select for diffs], Sat Nov 25 09:39:34 2006 UTC (17 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.138: +3 -3 lines
Diff to previous 1.138 (colored) to selected 1.121 (colored)

Expose the 'exe' symlink to the process realpath in NetBSD as well. An
example user is gdb.

OK'd by christos.

Revision 1.133.6.5 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:29 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.133.6.4: +41 -38 lines
Diff to previous 1.133.6.4 (colored) to branchpoint 1.133 (colored) to selected 1.121 (colored)

Sync with head.

Revision 1.133.6.4 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:40 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.133.6.3: +182 -76 lines
Diff to previous 1.133.6.3 (colored) to branchpoint 1.133 (colored) to selected 1.121 (colored)

Checkpoint work in progress.

Revision 1.138 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:38 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.137: +4 -4 lines
Diff to previous 1.137 (colored) to selected 1.121 (colored)

__unused removal on arguments; approved by core.

Revision 1.137 / (download) - annotate - [select for diffs], Sun Oct 29 22:35:35 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.136: +8 -2 lines
Diff to previous 1.136 (colored) to selected 1.121 (colored)

add an "emul" file node.

Revision 1.136 / (download) - annotate - [select for diffs], Wed Oct 25 18:59:52 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.135: +24 -33 lines
Diff to previous 1.135 (colored) to selected 1.121 (colored)

1. fix procfs_validfile{,_linux} to test for NULL pointers properly.
2. make "exe" entry be a symlink to the executable, instead of pointing
   directly to the vnode of the executable.
3. factor out commonly used code.

Revision 1.133.6.3 / (download) - annotate - [select for diffs], Tue Oct 24 21:10:22 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.133.6.2: +3 -3 lines
Diff to previous 1.133.6.2 (colored) to branchpoint 1.133 (colored) to selected 1.121 (colored)

- Redo LWP locking slightly and fix some races.
- Fix some locking botches.
- Make signal mask / stack per-proc for SA processes.
- Add _lwp_kill().

Revision 1.133.8.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:23 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.133: +7 -7 lines
Diff to previous 1.133 (colored) to selected 1.121 (colored)

sync with head

Revision 1.133.6.2 / (download) - annotate - [select for diffs], Sat Oct 21 14:37:18 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.133.6.1: +19 -14 lines
Diff to previous 1.133.6.1 (colored) to branchpoint 1.133 (colored) to selected 1.121 (colored)

- Make this compile. XXX Needs more work on locking.
- Do FILE_UNUSE() as the current LWP, otherwise we will wipe out the
  target's advisory locks. XXX Double check.

Revision 1.135 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:27 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.134: +4 -7 lines
Diff to previous 1.134 (colored) to selected 1.121 (colored)

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

Revision 1.134 / (download) - annotate - [select for diffs], Wed Sep 20 08:09:05 2006 UTC (17 years, 6 months ago) by manu
Branch: MAIN
Changes since 1.133: +5 -2 lines
Diff to previous 1.133 (colored) to selected 1.121 (colored)

Emulate Linux's /proc/devices

Revision 1.133.6.1 / (download) - annotate - [select for diffs], Mon Sep 11 00:20:01 2006 UTC (17 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.133: +4 -4 lines
Diff to previous 1.133 (colored) to selected 1.121 (colored)

- Convert some locks to mutexes and RW locks.
- Use the proclist_lock to protect pgrps and sessions in some places.

Revision 1.128.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:00 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.128: +26 -32 lines
Diff to previous 1.128 (colored) next main 1.129 (colored) to selected 1.121 (colored)

sync with head

Revision 1.129.4.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:53:38 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.129.4.1: +13 -16 lines
Diff to previous 1.129.4.1 (colored) to branchpoint 1.129 (colored) next main 1.130 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:26 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.123: +182 -80 lines
Diff to previous 1.123 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:09:12 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.130: +13 -16 lines
Diff to previous 1.130 (colored) next main 1.131 (colored) to selected 1.121 (colored)

Sync with head.

Revision 1.133 / (download) - annotate - [select for diffs], Tue Jun 13 13:57:33 2006 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.132: +6 -6 lines
Diff to previous 1.132 (colored) to selected 1.121 (colored)

use KAUTH_PROCESS_CANSEE rather than CURTAIN where appropriate.

Revision 1.132 / (download) - annotate - [select for diffs], Tue Jun 13 13:56:50 2006 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.131: +4 -5 lines
Diff to previous 1.131 (colored) to selected 1.121 (colored)

remove unnecessary arguments from kauth_authorize_process.
ie. make it similar to the one found in apple TN.

Revision 1.131 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:41 2006 UTC (17 years, 9 months ago) by kardel
Branch: MAIN
Changes since 1.130: +5 -7 lines
Diff to previous 1.130 (colored) to selected 1.121 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.129.2.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:30 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.129.2.1: +21 -18 lines
Diff to previous 1.129.2.1 (colored) to branchpoint 1.129 (colored) next main 1.130 (colored) to selected 1.121 (colored)

Sync with head.

Revision 1.129.8.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:43 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.129: +21 -18 lines
Diff to previous 1.129 (colored) next main 1.130 (colored) to selected 1.121 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.129.4.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:55 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.129: +21 -18 lines
Diff to previous 1.129 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.130 / (download) - annotate - [select for diffs], Sun May 14 21:31:53 2006 UTC (17 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Changes since 1.129: +21 -18 lines
Diff to previous 1.129 (colored) to selected 1.121 (colored)

integrate kauth.

Revision 1.129.6.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:58 2006 UTC (17 years, 10 months ago) by christos
Branch: elad-kernelauth
Changes since 1.129.6.2: +3 -2 lines
Diff to previous 1.129.6.2 (colored) to branchpoint 1.129 (colored) next main 1.130 (colored) to selected 1.121 (colored)

- 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.129.6.2 / (download) - annotate - [select for diffs], Fri Mar 10 11:53:55 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.129.6.1: +5 -5 lines
Diff to previous 1.129.6.1 (colored) to branchpoint 1.129 (colored) to selected 1.121 (colored)

process_authorize() -> kauth_authorize_process(), to be closer to the
original and as requested by yamt@ and thorpej@.

Revision 1.129.6.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:34:34 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.129: +20 -18 lines
Diff to previous 1.129 (colored) to selected 1.121 (colored)

Adapt to kernel authorization KPI.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:23 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.128: +3 -9 lines
Diff to previous 1.128 (colored) next main 1.129 (colored) to selected 1.121 (colored)

sync with head.

Revision 1.129.2.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:12:50 2006 UTC (18 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.129: +5 -7 lines
Diff to previous 1.129 (colored) to selected 1.121 (colored)

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

Revision 1.129 / (download) - annotate - [select for diffs], Thu Feb 2 00:29:24 2006 UTC (18 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, 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, peter-altq, elad-kernelauth
Changes since 1.128: +3 -9 lines
Diff to previous 1.128 (colored) to selected 1.121 (colored)

PR/32692: Matthew Mondor: linux compatibility in /proc/self should point
directly to the directory containing the pid instead of pointing to
/proc/curproc, because some programs rely on calling readlink on /proc/self
to get the pid.

Revision 1.128 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:51 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, rpaulo-netinet-merge-pcb
Changes since 1.127: +37 -34 lines
Diff to previous 1.127 (colored) to selected 1.121 (colored)

merge ktrace-lwp.

Revision 1.106.2.10 / (download) - annotate - [select for diffs], Thu Nov 10 14:10:32 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.9: +152 -46 lines
Diff to previous 1.106.2.9 (colored) next main 1.107 (colored) to selected 1.121 (colored)

Sync with HEAD. Here we go again...

Revision 1.127 / (download) - annotate - [select for diffs], Wed Nov 2 12:38:59 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.126: +2 -12 lines
Diff to previous 1.126 (colored) to selected 1.121 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.126.2.1 / (download) - annotate - [select for diffs], Thu Oct 20 05:03:04 2005 UTC (18 years, 5 months ago) by yamt
Branch: yamt-vop
Changes since 1.126: +2 -12 lines
Diff to previous 1.126 (colored) next main 1.127 (colored) to selected 1.121 (colored)

adapt procfs.

Revision 1.126 / (download) - annotate - [select for diffs], Sat Oct 1 03:17:37 2005 UTC (18 years, 6 months ago) by atatat
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.125: +107 -6 lines
Diff to previous 1.125 (colored) to selected 1.121 (colored)

Add "cwd" and "root" symlinks to each process's directory.  The cwd
link points to the process's current working directory, and the root
link points to the process's root directory.  What else would you
expect?

For directories that are out of reach (caller is in a chroot, target
process is in a different chroot, etc), the links point to "/"
instead.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Sep 11 20:15:53 2005 UTC (18 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.124: +16 -2 lines
Diff to previous 1.124 (colored) to selected 1.121 (colored)

Implement curtain for procfs.

Revision 1.124 / (download) - annotate - [select for diffs], Tue Aug 30 20:08:01 2005 UTC (18 years, 7 months ago) by xtraeme
Branch: MAIN
Changes since 1.123: +20 -20 lines
Diff to previous 1.123 (colored) to selected 1.121 (colored)

Remove __P()

Revision 1.123 / (download) - annotate - [select for diffs], Sun May 29 21:55:34 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.122: +10 -10 lines
Diff to previous 1.122 (colored) to selected 1.121 (colored)

- sprinkle const
- avoid shadowed variables.

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:30 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.120: +16 -15 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

sync with -current

Revision 1.122 / (download) - annotate - [select for diffs], Sat Apr 2 06:15:09 2005 UTC (19 years ago) by christos
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.121: +7 -6 lines
Diff to previous 1.121 (colored)

PR/29782: Martin Husemann: procfs can not unmount when some process has its
current directory in curproc. Fix from Pedro Martelletto:
We cannot call vgone() from procfs_inactive() if we are coming from
vclean(). that's what's probably causing the deadlock.

Revision 1.120.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:31 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.120: +11 -11 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

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

Revision 1.106.2.9 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:55 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.8: +11 -11 lines
Diff to previous 1.106.2.8 (colored) to selected 1.121 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.121 / (download) - annotate - [selected], Sat Feb 26 22:59:00 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.120: +11 -11 lines
Diff to previous 1.120 (colored)

nuke trailing whitespace

Revision 1.106.2.8 / (download) - annotate - [select for diffs], Wed Oct 27 06:48:24 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.7: +4 -4 lines
Diff to previous 1.106.2.7 (colored) to selected 1.121 (colored)

Fix various comments that describe the argument structures

Revision 1.106.2.7 / (download) - annotate - [select for diffs], Tue Oct 19 15:58:09 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.6: +82 -52 lines
Diff to previous 1.106.2.6 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.120 / (download) - annotate - [select for diffs], Mon Oct 4 08:40:18 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.119: +14 -14 lines
Diff to previous 1.119 (colored) to selected 1.121 (colored)

procfs_readdir:
- return correct cookie when buffer size is small.
- simplify logic.

Revision 1.119 / (download) - annotate - [select for diffs], Mon Oct 4 08:37:06 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.118: +2 -3 lines
Diff to previous 1.118 (colored) to selected 1.121 (colored)

procfs_readdir: remove a redundant assignment.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Oct 2 04:28:57 2004 UTC (19 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.117: +3 -3 lines
Diff to previous 1.117 (colored) to selected 1.121 (colored)

procfs_getattr: correct size of /proc/self.

Revision 1.117 / (download) - annotate - [select for diffs], Fri Oct 1 16:32:16 2004 UTC (19 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.116: +82 -51 lines
Diff to previous 1.116 (colored) to selected 1.121 (colored)

procfs_readdir:
- fix a locking problem, using proclist_foreach_call.  PR/27098.
- correct snprintf size argument.

Revision 1.116 / (download) - annotate - [select for diffs], Fri Oct 1 14:09:55 2004 UTC (19 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.115: +4 -4 lines
Diff to previous 1.115 (colored) to selected 1.121 (colored)

procfs_readdir: fix an offset handling bug after addition of /proc/self.

Revision 1.115 / (download) - annotate - [select for diffs], Fri Oct 1 14:09:14 2004 UTC (19 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored) to selected 1.121 (colored)

procfs_readdir: use a list macro.

Revision 1.106.2.6 / (download) - annotate - [select for diffs], Fri Sep 24 10:53:43 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.5: +5 -2 lines
Diff to previous 1.106.2.5 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.106.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:36:32 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.4: +29 -26 lines
Diff to previous 1.106.2.4 (colored) to selected 1.121 (colored)

Fix the sync with head I botched.

Revision 1.114 / (download) - annotate - [select for diffs], Mon Sep 20 17:53:08 2004 UTC (19 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.113: +5 -2 lines
Diff to previous 1.113 (colored) to selected 1.121 (colored)

add 'mounts' file for -o linux, which lists all currently mounted
filesystems; Linux glibc statvfs() uses this to get some of mount flags,
and this file is also useful as /emul/linux/etc/mtab (via symlink)

Revision 1.106.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:15 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.3: +26 -29 lines
Diff to previous 1.106.2.3 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.106.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:41 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.2: +3 -3 lines
Diff to previous 1.106.2.2 (colored) to selected 1.121 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.106.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:07 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.106.2.1: +131 -99 lines
Diff to previous 1.106.2.1 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.113 / (download) - annotate - [select for diffs], Thu Apr 29 16:10:55 2004 UTC (19 years, 11 months ago) by jrf
Branch: MAIN
Changes since 1.112: +9 -9 lines
Diff to previous 1.112 (colored) to selected 1.121 (colored)

Removed remaining caddr_t casts we do not need in miscfs. Recompiled
kernel and ran for a day or so. There are still some caddr_t types in
the arguments of some calls, I will do those separately (later) as
they touch a lot more of the system.
Approved by christos@NetBSD.org.

Revision 1.112 / (download) - annotate - [select for diffs], Thu Apr 22 00:31:00 2004 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.111: +9 -9 lines
Diff to previous 1.111 (colored) to selected 1.121 (colored)

sprintf -> snprintf

Revision 1.111 / (download) - annotate - [select for diffs], Sun Feb 15 22:18:17 2004 UTC (20 years, 1 month ago) by jdolecek
Branch: 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
Changes since 1.110: +7 -3 lines
Diff to previous 1.110 (colored) to selected 1.121 (colored)

unlock the descriptor table simple lock after fd_getfile() call in
procfs_readdir()
fixes procfs locking problems reported on current-users@, problem place
found by enami tsugutomo

Revision 1.110 / (download) - annotate - [select for diffs], Thu Oct 30 01:58:18 2003 UTC (20 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.109: +4 -6 lines
Diff to previous 1.109 (colored) to selected 1.121 (colored)

Remove some assigned-to but otherwise unused variables.

Revision 1.109 / (download) - annotate - [select for diffs], Sat Sep 27 13:29:02 2003 UTC (20 years, 6 months ago) by darcy
Branch: MAIN
Changes since 1.108: +78 -78 lines
Diff to previous 1.108 (colored) to selected 1.121 (colored)

Changes as discussed with itojun on tech-kern.  I have modified the enums
to have KFS or PFS differentiators.  Further I have wrapped the enum in
procfs in "#ifdef _KERNEL" as it is done in kernfs.

To see the discussion go to http://mail-index.NetBSD.org/tech-kern/2003/09/
and look for "Mismatched enums in include files" in the list.

Revision 1.108 / (download) - annotate - [select for diffs], Sun Sep 7 00:25:04 2003 UTC (20 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.107: +2 -3 lines
Diff to previous 1.107 (colored) to selected 1.121 (colored)

remove meaningless line (variable overwritten 2 lines below)

Revision 1.107 / (download) - annotate - [select for diffs], Thu Aug 7 16:32:43 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.106: +35 -3 lines
Diff to previous 1.106 (colored) to selected 1.121 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:54 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.106: +30 -26 lines
Diff to previous 1.106 (colored) to selected 1.121 (colored)

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

Revision 1.106 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:47 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.105: +25 -29 lines
Diff to previous 1.105 (colored) to selected 1.121 (colored)

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

Revision 1.105 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:35 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored) to selected 1.121 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.104 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:04 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.103: +30 -26 lines
Diff to previous 1.103 (colored) to selected 1.121 (colored)

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

Bump the kernel rev up to 1.6V

Revision 1.103 / (download) - annotate - [select for diffs], Wed May 28 18:03:16 2003 UTC (20 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.102: +5 -2 lines
Diff to previous 1.102 (colored) to selected 1.121 (colored)

Add /proc/<pid>/stat for linux compat. j2sdk1.4.2 depends on it.

Revision 1.102 / (download) - annotate - [select for diffs], Fri Apr 18 21:55:35 2003 UTC (20 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.101: +62 -35 lines
Diff to previous 1.101 (colored) to selected 1.121 (colored)

Make symlinks for directories that point to the actual directory.
Make symlinks to [kqueue] and [misc] for kqueue and misc fds.

Revision 1.101 / (download) - annotate - [select for diffs], Thu Apr 17 20:50:46 2003 UTC (20 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.100: +15 -2 lines
Diff to previous 1.100 (colored) to selected 1.121 (colored)

do not show nodes corresponding to directory descriptors for process
in fd/ subdirectory, nor allow lookup/open for the nodes
this fixes PR kern/21187 for good, and also avoids interesting directory
locking issues

Revision 1.100 / (download) - annotate - [select for diffs], Thu Apr 17 20:33:17 2003 UTC (20 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.99: +22 -3 lines
Diff to previous 1.99 (colored) to selected 1.121 (colored)

procfs_readdir(): in Pfd case, only show descriptors of types we want
how to represent (vnodes, fifo, pipes); also use fd_getfile() et al

this avoids annoying EOPNOTSUPP error messages from ls -F and such

Revision 1.99 / (download) - annotate - [select for diffs], Thu Apr 17 20:19:18 2003 UTC (20 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.98: +7 -7 lines
Diff to previous 1.98 (colored) to selected 1.121 (colored)

procfs_lookup(): use fd_getfile() et al in Pfd case

Revision 1.98 / (download) - annotate - [select for diffs], Thu Apr 17 19:04:25 2003 UTC (20 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.97: +7 -3 lines
Diff to previous 1.97 (colored) to selected 1.121 (colored)

use fd_getfile() in procfs_getfp(), and FILE_USE()/FILE_UNUSE() the
returned file descriptor pointer appropriately

Revision 1.97 / (download) - annotate - [select for diffs], Thu Apr 17 18:08:28 2003 UTC (20 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.96: +7 -7 lines
Diff to previous 1.96 (colored) to selected 1.121 (colored)

make some local arrays/variables static + const

Revision 1.96 / (download) - annotate - [select for diffs], Thu Apr 10 21:53:34 2003 UTC (20 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.95: +8 -8 lines
Diff to previous 1.95 (colored) to selected 1.121 (colored)

use former genfs_eopnotsupp_rele() as genfs_eopnotsupp(), so that vnodes
are vput()/vrele()d as necessary - some filesystems did use the wrong
one for some ops, and it's just safer to not take the chance

based on suggestion by Bill Studenmund

Revision 1.95 / (download) - annotate - [select for diffs], Sat Apr 5 23:32:52 2003 UTC (20 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.94: +2 -4 lines
Diff to previous 1.94 (colored) to selected 1.121 (colored)

Remove pointless check against PID_MAX.  Let pfind() do the validation.
(The new pid allocation code may decide to allocate pids above PID_MAX.)

Revision 1.94 / (download) - annotate - [select for diffs], Tue Feb 25 21:00:32 2003 UTC (21 years, 1 month ago) by jrf
Branch: MAIN
Changes since 1.93: +5 -2 lines
Diff to previous 1.93 (colored) to selected 1.121 (colored)

This addresses PR kerm/19989. Thanks to hamajima@nagoya.ydc.co.jp for submitting this patch which enables /proc/uptime for linux emul. Patch reviewed by atatat@netbsd.org and tron@netbsd.org, approved by tron@netbsd.org.

Revision 1.78.2.13 / (download) - annotate - [select for diffs], Tue Jan 7 21:41:15 2003 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.78.2.12: +155 -30 lines
Diff to previous 1.78.2.12 (colored) next main 1.79 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Jan 4 15:42:35 2003 UTC (21 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored) to selected 1.121 (colored)

Cast off_t expression to long long to match format even on 64 bit
plattforms.

Shouldn't we introduce a PRIoff_t macro to create such format strings?

Revision 1.92 / (download) - annotate - [select for diffs], Fri Jan 3 13:54:22 2003 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.91: +4 -6 lines
Diff to previous 1.91 (colored) to selected 1.121 (colored)

add LK_CANRECURSE in the locking of /dev/<pid>/fd/<n> and remove the curproc
kludge. Thanks to fvdl.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Jan 3 13:21:18 2003 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.90: +157 -30 lines
Diff to previous 1.90 (colored) to selected 1.121 (colored)

Implement /proc/<pid>/fd/<n>. This is work in progress. Questionable things:
    - Is it ok to convert DTYPE_PIPE to VFIFO and DTYPE_SOCKET to VSOCK?
    - XXX: Avoid locking issue in ls -Rl /proc by avoiding curproc
    - Does I/O to pipes work?
    - XXX: Are there security implications?

Revision 1.78.2.12 / (download) - annotate - [select for diffs], Tue Oct 15 18:00:41 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.11: +23 -26 lines
Diff to previous 1.78.2.11 (colored) to selected 1.121 (colored)

Make all the procfs_validfoo() routines go back to taking a proc
instead of an lwp; they aren't doing anything useful with the LWP.

Revert changes that changed /proc/curproc to /proc/curlwp, and broke it in
the process.

Revision 1.82.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:41 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.82.2.4: +7 -6 lines
Diff to previous 1.82.2.4 (colored) next main 1.83 (colored) to selected 1.121 (colored)

sync kqueue branch with HEAD

Revision 1.89.2.1 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:25 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.89: +7 -6 lines
Diff to previous 1.89 (colored) next main 1.90 (colored) to selected 1.121 (colored)

catch up with -current.

Revision 1.78.2.11 / (download) - annotate - [select for diffs], Tue Aug 13 02:20:11 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.10: +7 -6 lines
Diff to previous 1.78.2.10 (colored) to selected 1.121 (colored)

Catch up to -current.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Aug 3 04:52:45 2002 UTC (21 years, 8 months ago) by simonb
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Changes since 1.89: +7 -6 lines
Diff to previous 1.89 (colored) to selected 1.121 (colored)

Just use the "time" variable in the *_getattr functions instead of a call
to (the potentially expensive) microtime().

Revision 1.78.2.10 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:26 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.9: +2 -3 lines
Diff to previous 1.78.2.9 (colored) to selected 1.121 (colored)

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

Revision 1.78.2.9 / (download) - annotate - [select for diffs], Mon Jun 24 22:11:16 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.8: +14 -14 lines
Diff to previous 1.78.2.8 (colored) to selected 1.121 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.82.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:50:14 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.82.2.3: +4 -3 lines
Diff to previous 1.82.2.3 (colored) to selected 1.121 (colored)

catch up with -current on kqueue branch

Revision 1.78.2.8 / (download) - annotate - [select for diffs], Thu Jun 20 03:48:02 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.7: +4 -3 lines
Diff to previous 1.78.2.7 (colored) to selected 1.121 (colored)

Catch up to -current.

Revision 1.89 / (download) - annotate - [select for diffs], Thu May 9 15:44:45 2002 UTC (21 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.88: +4 -3 lines
Diff to previous 1.88 (colored) to selected 1.121 (colored)

Move code shared by procfs and the kernel proper out of procfs and
into the kernel proper (renaming functions from procfs_* to process_*).

Revision 1.78.2.7 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:57 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.6: +5 -4 lines
Diff to previous 1.78.2.6 (colored) to selected 1.121 (colored)

Catch up to -current.

Revision 1.82.2.3 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:28 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.82.2.2: +5 -4 lines
Diff to previous 1.82.2.2 (colored) to selected 1.121 (colored)

Sync w/ -current.

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Mon Jan 14 15:20:58 2002 UTC (22 years, 2 months ago) by he
Branch: netbsd-1-4
Changes since 1.61.2.1: +2 -2 lines
Diff to previous 1.61.2.1 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.121 (colored)

Pull up revision 1.88 (via patch, requested by he):
  Fix a ptrace/execve race condition which could be used to modify
  the child process' image during execve.  This would be a security
  issue due to setuid programs.

Revision 1.70.4.2 / (download) - annotate - [select for diffs], Mon Jan 14 10:59:32 2002 UTC (22 years, 2 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.70.4.1: +2 -2 lines
Diff to previous 1.70.4.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored) to selected 1.121 (colored)

Pull up revision 1.88 (via patch, requested by christos):
  Fix a ptrace/execve race condition which could be used to modify
  the child process' image during execve.  This would be a security
  issue due to setuid programs.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Jan 12 18:52:30 2002 UTC (22 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.87: +5 -4 lines
Diff to previous 1.87 (colored) to selected 1.121 (colored)

Don't hide the real return code with EPERM.

Revision 1.82.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:01:45 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.82.2.1: +19 -4 lines
Diff to previous 1.82.2.1 (colored) to selected 1.121 (colored)

Sync kqueue branch with -current.

Revision 1.78.2.6 / (download) - annotate - [select for diffs], Tue Jan 8 00:33:42 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.5: +16 -3 lines
Diff to previous 1.78.2.5 (colored) to selected 1.121 (colored)

Catch up to -current.

Revision 1.87 / (download) - annotate - [select for diffs], Thu Dec 6 04:27:42 2001 UTC (22 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.86: +4 -2 lines
Diff to previous 1.86 (colored) to selected 1.121 (colored)

add a VOP_PUTPAGES method for all the filesystems that don't have pages,
just unlock the interlock.

Revision 1.86 / (download) - annotate - [select for diffs], Wed Dec 5 00:58:06 2001 UTC (22 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.85: +14 -3 lines
Diff to previous 1.85 (colored) to selected 1.121 (colored)

* Allow machine-dependent code to specify hooks for ptrace(2)
  (__HAVE_PTRACE_MACHDEP) and procfs (__HAVE_PROCFS_MACHDEP).
  These changes will allow platforms like x86 (XMM) and PowerPC
  (AltiVec) to export extended register sets in a sane manner.

* Use __HAVE_PTRACE_MACHDEP to export x86 XMM registers (standard
  FP + SSE/SSE2) using PT_{GET,SET}XMMREGS (in the machdep
  ptrace request space).
* Use __HAVE_PROCFS_MACHDEP to export x86 XMM registers via
  /proc/N/xmmregs in procfs.

Revision 1.78.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:12 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.4: +5 -3 lines
Diff to previous 1.78.2.4 (colored) to selected 1.121 (colored)

Catch up to -current.

Revision 1.83.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:13 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.83: +5 -3 lines
Diff to previous 1.83 (colored) next main 1.84 (colored) to selected 1.121 (colored)

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

Revision 1.85 / (download) - annotate - [select for diffs], Sat Nov 10 13:33:44 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.84: +4 -1 lines
Diff to previous 1.84 (colored) to selected 1.121 (colored)

add RCSIDs

Revision 1.84 / (download) - annotate - [select for diffs], Tue Nov 6 07:20:37 2001 UTC (22 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.83: +2 -3 lines
Diff to previous 1.83 (colored) to selected 1.121 (colored)

Remove some variables that are set but never used.

Revision 1.78.2.4 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:39 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.3: +2 -1 lines
Diff to previous 1.78.2.3 (colored) to selected 1.121 (colored)

Catch up to -current.

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Tue Sep 18 19:13:56 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.83: +2 -1 lines
Diff to previous 1.83 (colored) next main 1.84 (colored) to selected 1.121 (colored)

Various changes to make cloning devices possible:

	* Add an extra argument (struct vnode **) to VOP_OPEN. If it is
	  not NULL, specfs will create a cloned (aliased) vnode during
	  the call, and return it there. The caller should release and
	  unlock the original vnode if a new vnode was returned. The
	  new vnode is returned locked.

	* Add a flag field to the cdevsw and bdevsw structures.
	  DF_CLONING indicates that it wants a new vnode for each
	  open (XXX is there a better way? devprop?)

	* If a device is cloning, always call the close entry
	  point for a VOP_CLOSE.


Also, rewrite cons.c to do the right thing with vnodes. Use VOPs
rather then direct device entry calls. Suggested by mycroft@

Light to moderate testing done an i386 system (arch doesn't matter
though, these are MI changes).

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Thu Sep 13 01:16:20 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored) to selected 1.121 (colored)

Update the kqueue branch to HEAD.

Revision 1.83 / (download) - annotate - [select for diffs], Fri Aug 31 04:56:26 2001 UTC (22 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, thorpej-devvp
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored) to selected 1.121 (colored)

map files are zero-length.

Revision 1.78.2.3 / (download) - annotate - [select for diffs], Thu Jun 21 20:07:44 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.2: +4 -37 lines
Diff to previous 1.78.2.2 (colored) to selected 1.121 (colored)

Catch up to -current.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Jun 3 02:21:35 2001 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Branch point for: kqueue
Changes since 1.81: +3 -36 lines
Diff to previous 1.81 (colored) to selected 1.121 (colored)

procfs_bmap() should never be called, make it a "bad op".
let procfs_mmap() use the default error method.

Revision 1.69.2.6 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:35 2001 UTC (22 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.69.2.5: +12 -3 lines
Diff to previous 1.69.2.5 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored) to selected 1.121 (colored)

Sync with HEAD

Revision 1.81 / (download) - annotate - [select for diffs], Sat Apr 14 13:25:46 2001 UTC (22 years, 11 months ago) by kleink
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored) to selected 1.121 (colored)

In procfs_readdir(), give /proc/# directories DT_DIR (rather than DT_REG).

Revision 1.78.2.2 / (download) - annotate - [select for diffs], Mon Apr 9 01:58:10 2001 UTC (22 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.78.2.1: +11 -2 lines
Diff to previous 1.78.2.1 (colored) to selected 1.121 (colored)

Catch up with -current.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Fri Mar 30 21:50:16 2001 UTC (23 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.70: +97 -14 lines
Diff to previous 1.70 (colored) to selected 1.121 (colored)

Pull up revisions 1.74-1.76 (via patch, requested by fvdl):
  Add some required Linux emulation bits to support the Linux
  version of VMware.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Mar 30 20:25:11 2001 UTC (23 years ago) by fvdl
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored) to selected 1.121 (colored)

Bump va_blocksize for the map files some more, so that programs with
quite a few mappings have a chance of being handled correctly if
st_blksize is looked at.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Mar 29 22:41:53 2001 UTC (23 years ago) by fvdl
Branch: MAIN
Changes since 1.78: +11 -2 lines
Diff to previous 1.78 (colored) to selected 1.121 (colored)

For -o linux mounts, add some code to emulate /proc/#/maps.
Needs NAMECACHE_ENTER_REVERSE to include filenames.

Revision 1.69.2.5 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:45 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.69.2.4: +4 -4 lines
Diff to previous 1.69.2.4 (colored) to branchpoint 1.69 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:51 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.78: +18 -14 lines
Diff to previous 1.78 (colored) to selected 1.121 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.78 / (download) - annotate - [select for diffs], Wed Feb 21 21:39:58 2001 UTC (23 years, 1 month ago) by jdolecek
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) to selected 1.121 (colored)

make some more constant arrays 'const'

Revision 1.69.2.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:17:02 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.69.2.3: +3 -3 lines
Diff to previous 1.69.2.3 (colored) to branchpoint 1.69 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Jan 22 12:17:39 2001 UTC (23 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.121 (colored)

make filesystem vnodeop, specop, fifoop and vnodeopv_* arrays const

Revision 1.69.2.3 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:48 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.69.2.2: +86 -24 lines
Diff to previous 1.69.2.2 (colored) to branchpoint 1.69 (colored) to selected 1.121 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.76 / (download) - annotate - [select for diffs], Wed Jan 17 00:09:08 2001 UTC (23 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.75: +87 -25 lines
Diff to previous 1.75 (colored) to selected 1.121 (colored)

Add a few linux-style files, only enabled when -o linux is specified
for the mount. Currently these are /proc/cpuinfo and /proc/meminfo.
The former only does something on i386 right now.

Revision 1.69.2.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:15:01 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.69.2.1: +3 -3 lines
Diff to previous 1.69.2.1 (colored) to branchpoint 1.69 (colored) to selected 1.121 (colored)

Sync with HEAD.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Nov 24 18:58:37 2000 UTC (23 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.121 (colored)

remove dead code and other misc cleanup.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:49 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.69: +25 -8 lines
Diff to previous 1.69 (colored) to selected 1.121 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.74 / (download) - annotate - [select for diffs], Wed Aug 9 23:30:49 2000 UTC (23 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.73: +15 -3 lines
Diff to previous 1.73 (colored) to selected 1.121 (colored)

Only show the "exe" entry to Linux processes, suggested by christos.
Since there are actually three struct emul's for linux, use the e_name
field to determine eligibility with strcmp().

Revision 1.73 / (download) - annotate - [select for diffs], Wed Aug 9 21:08:11 2000 UTC (23 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.72: +8 -1 lines
Diff to previous 1.72 (colored) to selected 1.121 (colored)

Some versions of Linux libc look for /proc/.../exe instead of /proc/../file.
Add an entry for "exe" that is the same as "file", provided only if
COMPAT_LINUX is set.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Aug 3 03:41:18 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored) to selected 1.121 (colored)

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

Revision 1.71 / (download) - annotate - [select for diffs], Wed Jun 28 02:44:07 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) to selected 1.121 (colored)

<vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.70 / (download) - annotate - [select for diffs], Thu Mar 30 02:20:14 2000 UTC (24 years ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.69: +1 -3 lines
Diff to previous 1.69 (colored) to selected 1.121 (colored)

Delete duplicate declaration of atopid().

Revision 1.69.8.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:20:00 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.69: +9 -5 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.121 (colored)

Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".

Revision 1.69 / (download) - annotate - [select for diffs], Thu Sep 2 23:33:45 1999 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.68: +33 -11 lines
Diff to previous 1.68 (colored) to selected 1.121 (colored)

Make /proc/self a symlink to /proc/curproc.  I've observed Linux programs
that expect /proc/self/cmdline to exist.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Sat Aug 28 23:28:16 1999 UTC (24 years, 7 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.61: +5 -2 lines
Diff to previous 1.61 (colored) to selected 1.121 (colored)

Pull up revisions 1.66-1.68:
  Protect {fdesc,kernfs,procfs}_readdir against directory seeks
  with bogus offsets.  (sommerfeld)

Revision 1.68 / (download) - annotate - [select for diffs], Wed Aug 25 14:42:36 1999 UTC (24 years, 7 months ago) by sommerfeld
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored) to selected 1.121 (colored)

Change variable used for directory offset from "int" to "off_t".
Overkill, but avoids a host of truncation problems.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Aug 24 23:29:09 1999 UTC (24 years, 7 months ago) by sommerfeld
Branch: MAIN
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored) to selected 1.121 (colored)

Fix PR8270:

Problem turned out to be due to improper handling of reads beyond EOF:
they should just return without error with the uio unchanged, and the
caller will recognize this as a zero-byte return (EOF).

The previous fix to protect directory reads against bogus uio_offset
values returned EINVAL, which broke mount -o union, which only
union'ed in the lower directory if the upper directory cleanly
returned EOF.

While we're here, protect kernfs as well.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Aug 14 02:20:19 1999 UTC (24 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.65: +4 -1 lines
Diff to previous 1.65 (colored) to selected 1.121 (colored)

protect against large uio_offset

Revision 1.65 / (download) - annotate - [select for diffs], Tue Aug 3 20:19:20 1999 UTC (24 years, 8 months ago) by wrstuden
Branch: MAIN
Changes since 1.64: +3 -1 lines
Diff to previous 1.64 (colored) to selected 1.121 (colored)

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.61.4.1 / (download) - annotate - [select for diffs], Mon Aug 2 22:28:34 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.61: +74 -24 lines
Diff to previous 1.61 (colored) next main 1.62 (colored) to selected 1.121 (colored)

Update from trunk.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jul 25 18:33:47 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.63: +3 -1 lines
Diff to previous 1.63 (colored) to selected 1.121 (colored)

Add calls to lock the proclist as appropriate.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Jul 14 23:52:22 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored) to selected 1.121 (colored)

Fix a paste-o in procfs_lookup() introduced with the vnode locking changes.
Fixes PR #7961, Mario Kemper <magick@bundy.lip.owl.de>.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Jul 8 01:26:29 1999 UTC (24 years, 8 months ago) by wrstuden
Branch: MAIN
Changes since 1.61: +72 -24 lines
Diff to previous 1.61 (colored) to selected 1.121 (colored)

Bump osrelease to 1.4E. Add layerfs files, remove null_subr.c.

Update coda to new struct lock in struct vnode.

make fdescfs, kernfs, portalfs, and procfs actually lock their vnodes.
It's not that hard.

Make unionfs set v_vnlock = NULL so any overlayed fs will call its
VOP_LOCK.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Mar 12 18:45:40 1999 UTC (25 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.60: +4 -1 lines
Diff to previous 1.60 (colored) to selected 1.121 (colored)

PR/7143: Jaromir Docelek: Add procfs/cmdline from Linux emulation

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jan 25 02:20:08 1999 UTC (25 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.59: +4 -1 lines
Diff to previous 1.59 (colored) to selected 1.121 (colored)

Add /proc/#/map. From FreeBSD.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Sep 8 23:50:14 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.58: +14 -12 lines
Diff to previous 1.58 (colored) to selected 1.121 (colored)

- Use proclists[], rather than checking allproc and zombproc explicitly.
- Add some comments about locking.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Aug 13 10:06:34 1998 UTC (25 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored) to selected 1.121 (colored)

Per POSIX, fail with EINVAL if advisory locking is attempted on a file type
that doesn't support it, rather than using a homegrown EBADF or EOPNOTSUPP.

Revision 1.57 / (download) - annotate - [select for diffs], Mon Aug 10 08:11:12 1998 UTC (25 years, 7 months ago) by matthias
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored) to selected 1.121 (colored)

create miscfs/genfs/genfs_vnops.c:genfs_enoioctl and make all the other
filesystems use it instead of a private version.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Aug 9 20:51:10 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.55: +6 -6 lines
Diff to previous 1.55 (colored) to selected 1.121 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.55 / (download) - annotate - [select for diffs], Mon Aug 3 14:20:00 1998 UTC (25 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.54: +4 -1 lines
Diff to previous 1.54 (colored) to selected 1.121 (colored)

Recognize _PC_SYNC_IO.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Apr 21 16:36:37 1998 UTC (25 years, 11 months ago) by fvdl
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.53: +3 -2 lines
Diff to previous 1.53 (colored) to selected 1.121 (colored)

procfs_readdir: in case of error, check if cookies actually have
been allocated before freeing them. From Wolfgang Solfrank.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Mar 1 02:21:17 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.52: +50 -16 lines
Diff to previous 1.52 (colored) to selected 1.121 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:19 1998 UTC (26 years, 1 month ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +284 -169 lines
Diff to previous 1.1.1.1 (colored) to selected 1.121 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:10:02 1998 UTC (26 years, 1 month ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1: +669 -478 lines
Diff to previous 1.1 (colored) to selected 1.121 (colored)

Import 4.4BSD-Lite for reference

Revision 1.49.4.3 / (download) - annotate - [select for diffs], Tue Oct 14 10:28:36 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.49.4.2: +3 -3 lines
Diff to previous 1.49.4.2 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored) to selected 1.121 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Oct 10 02:01:05 1997 UTC (26 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: 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, marc-pcmcia-base
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.121 (colored)

Bump last argument to VOP_READDIR to off_t (from u_long).

Revision 1.49.4.2 / (download) - annotate - [select for diffs], Thu Aug 28 00:21:49 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.49.4.1: +3 -3 lines
Diff to previous 1.49.4.1 (colored) to branchpoint 1.49 (colored) to selected 1.121 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Aug 27 08:52:54 1997 UTC (26 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.121 (colored)

Fix a reversed argument which caused procfs_checkioperm() to always return
"OK".  Add a few comments to avoid further confusion.

Revision 1.49.4.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:14:16 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.49: +12 -4 lines
Diff to previous 1.49 (colored) to selected 1.121 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Aug 12 22:47:22 1997 UTC (26 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.49: +12 -4 lines
Diff to previous 1.49 (colored) to selected 1.121 (colored)

Fix the procfs hole described on current-users, similar to a fix for
FreeBSD by Sean Eric Fagan, but a bit different.  This makes the checks
in the same places as sef's FreeBSD patch, but does not hardcode the
"kmem" group into the kernel, and also does a check identical to the
(3) and (4) checks in the NetBSD ptrace(2):

	(1) it's not owned by you, or is set-id on exec (unless
	    you're root), or

	(2) it's init, which controls the security level of the
	    entire system, and the system was not compiled with
	    permanently insecure mode turned on.

Revision 1.49 / (download) - annotate - [select for diffs], Thu May 8 16:20:22 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored) to selected 1.121 (colored)

Pass the vnode type to vaccess(), and use it when checking VEXEC.  Make sure
that the mode bits passed to vaccess() and returned by foo_getattr() contain
only permission bits.

Revision 1.48 / (download) - annotate - [select for diffs], Mon May 5 07:34:09 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.47: +4 -1 lines
Diff to previous 1.47 (colored) to selected 1.121 (colored)

Need stat.h.

Revision 1.47 / (download) - annotate - [select for diffs], Mon May 5 07:14:01 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.46: +7 -9 lines
Diff to previous 1.46 (colored) to selected 1.121 (colored)

Eliminate bogus uses of V{READ,WRITE,EXEC}.  Use S_I[RWX]{USR,GRP,OTH} where
appropriate.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Apr 28 03:49:57 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.45: +11 -19 lines
Diff to previous 1.45 (colored) to selected 1.121 (colored)

Minor code cleanup.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Oct 25 21:58:03 1996 UTC (27 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored) to selected 1.121 (colored)

define path name string variables that we should not (and, thankfully, do
not) modify as 'const char *' rather 'char *'.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Oct 13 02:21:39 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (colored) to selected 1.121 (colored)

backout previous kprintf changes

Revision 1.43 / (download) - annotate - [select for diffs], Thu Oct 10 22:54:17 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.42: +5 -5 lines
Diff to previous 1.42 (colored) to selected 1.121 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.42 / (download) - annotate - [select for diffs], Sat Sep 7 12:41:18 1996 UTC (27 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.121 (colored)

Implement poll(2).

Revision 1.41 / (download) - annotate - [select for diffs], Sun Sep 1 23:48:22 1996 UTC (27 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.40: +26 -73 lines
Diff to previous 1.40 (colored) to selected 1.121 (colored)

Add a set of generic file system operations that most file systems use.
Also, fix some time stamp bogosities.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Mar 16 23:52:55 1996 UTC (28 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) to selected 1.121 (colored)

Fix printf format follies.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Feb 13 13:12:59 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored) to selected 1.121 (colored)

GC *_nullop().  Minor nits.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Feb 12 15:01:44 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 (colored) to selected 1.121 (colored)

close PR/2063: procfs_rw prototyped twice with different prototypes

Revision 1.37 / (download) - annotate - [select for diffs], Fri Feb 9 22:40:54 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.36: +207 -120 lines
Diff to previous 1.36 (colored) to selected 1.121 (colored)

miscfs prototype changes

Revision 1.36 / (download) - annotate - [select for diffs], Fri Feb 9 14:45:53 1996 UTC (28 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.35: +31 -1 lines
Diff to previous 1.35 (colored) to selected 1.121 (colored)

Fix vop_link, vop_symlink, and vop_remove semantics in several ways:
* Change the argument names to vop_link so they actually make sense.
* Implement vop_link and vop_symlink for all file systems, so they do proper
  cleanup.
* Require the file system to decide whether or not linking and unlinking of
  directories is allowed, and disable it for all current file systems.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Oct 9 14:03:38 1995 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.34: +6 -8 lines
Diff to previous 1.34 (colored) to selected 1.121 (colored)

Use the index number as the cookie, rather than multiplying by UIO_MX.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Oct 9 11:18:55 1995 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +40 -45 lines
Diff to previous 1.33 (colored) to selected 1.121 (colored)

Add support for cookies, mostly from Greg Hudson.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Apr 15 01:56:51 1995 UTC (28 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.32: +4 -5 lines
Diff to previous 1.32 (colored) to selected 1.121 (colored)

fix timeval vs. timespec warnings

Revision 1.32 / (download) - annotate - [select for diffs], Fri Feb 3 16:18:55 1995 UTC (29 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.31: +52 -53 lines
Diff to previous 1.31 (colored) to selected 1.121 (colored)

Return EROFS rather than ENOENT in many cases.  Also some cosmetic cleanup.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Dec 27 19:10:58 1994 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.30: +5 -7 lines
Diff to previous 1.30 (colored) to selected 1.121 (colored)

Format police.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Dec 24 16:44:27 1994 UTC (29 years, 3 months ago) by ws
Branch: MAIN
Changes since 1.29: +3 -35 lines
Diff to previous 1.29 (colored) to selected 1.121 (colored)

Implement and use a common access checking routine

Revision 1.29 / (download) - annotate - [select for diffs], Wed Dec 14 18:47:46 1994 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored) to selected 1.121 (colored)

Remove a_fp.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Nov 14 06:08:21 1994 UTC (29 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored) to selected 1.121 (colored)

fixed struct comment

Revision 1.27 / (download) - annotate - [select for diffs], Sun Oct 30 21:48:33 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored) to selected 1.121 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Thu Oct 20 04:26:36 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored) to selected 1.121 (colored)

update for new syscall args description mechanism

Revision 1.25 / (download) - annotate - [select for diffs], Tue Aug 30 03:06:42 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored) to selected 1.121 (colored)

Convert process, file, and namei lists and hash tables to use queue.h.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jun 29 06:35:00 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored) to selected 1.121 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jun 16 06:01:19 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.22: +4 -8 lines
Diff to previous 1.22 (colored) to selected 1.121 (colored)

Remove an unneeded test.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jun 15 22:59:15 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.21: +79 -16 lines
Diff to previous 1.21 (colored) to selected 1.121 (colored)

Minor update from JSP after merging my changes.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jun 8 11:33:45 1994 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +305 -318 lines
Diff to previous 1.20 (colored) to selected 1.121 (colored)

Update to 4.4-Lite fs code, with local changes.

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 5 05:39:17 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored) to selected 1.121 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 15 20:49:29 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) to selected 1.121 (colored)

forgot these...

Revision 1.18 / (download) - annotate - [select for diffs], Tue Apr 12 02:55:53 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.17: +30 -27 lines
Diff to previous 1.17 (colored) to selected 1.121 (colored)

be a bit smarter about determining if files shouldn't be seen by the user.
Also, DON'T allow a lookup to succeed on a file that's not visible!

Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 15 13:32:39 1994 UTC (30 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.121 (colored)

Undo last change; executables is `file', not `a.out'.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Feb 14 19:08:36 1994 UTC (30 years, 1 month ago) by ws
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.121 (colored)

Rename file -> a.out

Revision 1.15 / (download) - annotate - [select for diffs], Mon Feb 14 19:07:27 1994 UTC (30 years, 1 month ago) by ws
Branch: MAIN
Changes since 1.14: +9 -1 lines
Diff to previous 1.14 (colored) to selected 1.121 (colored)

Don't try to show a file for a process if there is none

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jan 28 07:03:41 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.13: +15 -1 lines
Diff to previous 1.13 (colored) to selected 1.121 (colored)

make a fpregs file.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 20 21:23:10 1994 UTC (30 years, 2 months ago) by ws
Branch: MAIN
Changes since 1.12: +14 -1 lines
Diff to previous 1.12 (colored) to selected 1.121 (colored)

Make procfs really work for debugging.
Implement not & notepg files in procfs.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 9 19:44:10 1994 UTC (30 years, 2 months ago) by ws
Branch: MAIN
Changes since 1.11: +96 -40 lines
Diff to previous 1.11 (colored) to selected 1.121 (colored)

Bug fixes and enhancements:
Make NFS serving work (BUT DON'T USE "attach" TO /proc/*/ctl FOR NOW!!!)
Make `curproc' a symbolic link
Add `.' and `..' entries to the directories.
Return better guesses on the size of the files.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jan 5 21:56:02 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.10: +5 -1 lines
Diff to previous 1.10 (colored) to selected 1.121 (colored)

return size of 'reg' from getattr()

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jan 5 08:00:09 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.121 (colored)

make it compile (cleanly) for us

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 5 07:51:34 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.8: +553 -532 lines
Diff to previous 1.8 (colored) to selected 1.121 (colored)

add new procfs code, from Jan-Simon Pendry, jsp@sequent.com.
This is pretty-much "virgin", so that diffs can be done later.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Dec 18 03:58:14 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +18 -18 lines
Diff to previous 1.7 (colored) to selected 1.121 (colored)

Canonicalize all #includes.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Sun Nov 14 22:35:07 1993 UTC (30 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.6.2.1: +20 -18 lines
Diff to previous 1.6.2.1 (colored) next main 1.7 (colored) to selected 1.121 (colored)

Canonicalize all #includes.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Fri Sep 24 08:53:04 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.121 (colored)

Changes from trunk.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Sep 16 22:08:30 1993 UTC (30 years, 6 months ago) by cgd
Branch: MAIN
CVS Tags: magnum-base
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.121 (colored)

kill volatile warning.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 7 15:41:27 1993 UTC (30 years, 6 months ago) by ws
Branch: MAIN
Branch point for: magnum
Changes since 1.5: +18 -4 lines
Diff to previous 1.5 (colored) to selected 1.121 (colored)

Changes to VFS readdir semantics
NFS changes for better cookie support
ISOFS changes for better Rockridge support and support for generation numbers

Revision 1.5 / (download) - annotate - [select for diffs], Thu Aug 26 19:01:02 1993 UTC (30 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.4: +102 -12 lines
Diff to previous 1.4 (colored) to selected 1.121 (colored)

Implement setattr: mode for process entries; mode + uid/gid for the
PROCFS root directory.
Fixed omission in pfs_root() which came to light as a result of the above:
hold on to vnode for root dir.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Aug 25 09:28:47 1993 UTC (30 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.3: +8 -6 lines
Diff to previous 1.3 (colored) to selected 1.121 (colored)

Fixed improperly initialized nfsnode in pfs_lookup()

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 24 16:47:26 1993 UTC (30 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.121 (colored)

copyright update.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Aug 24 16:25:13 1993 UTC (30 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.1: +33 -1 lines
Diff to previous 1.1 (colored) to selected 1.121 (colored)

Rcs Id added.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 24 12:59:12 1993 UTC (30 years, 7 months ago) by pk
Branch: MAIN
Diff to selected 1.121 (colored)

Initial version of a proc filesystem.

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




CVSweb <webmaster@jp.NetBSD.org>