The NetBSD Project

CVS log for src/sys/miscfs/procfs/procfs.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.84 / (download) - annotate - [select for diffs], Wed Jan 17 10:20:12 2024 UTC (5 weeks, 3 days ago) by hannken
Branch: MAIN
CVS Tags: HEAD
Changes since 1.83: +1 -3 lines
Diff to previous 1.83 (colored)

Using the exechook to revoke procfs nodes is racy and may deadlock:

one thread runs doexechooks() -> procfs_revoke_vnodes() and wants to suspend
the file system for vgone(), while another thread runs a forced unmount,
has the file system suspended, tries to disestablish the exechook and
waits for doexechooks() to complete.

Establish/disestablish the exechook on module load/unload instead
mount/unmount and use the hashmap to access all procfs nodes for this pid.

May fix PR kern/57775 ""panic: unmount: dangling vnode" while umounting procfs"

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jan 17 10:19:21 2024 UTC (5 weeks, 3 days ago) by hannken
Branch: MAIN
Changes since 1.82: +4 -1 lines
Diff to previous 1.82 (colored)

Add a hashmap to access all procfs nodes by pid.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jan 19 10:23:00 2022 UTC (2 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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.81: +3 -1 lines
Diff to previous 1.81 (colored)

Now that an inline function dereferences it, make sure struct proc
is declared by including sys/proc.h here.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Jan 17 11:20:00 2022 UTC (2 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.80: +9 -1 lines
Diff to previous 1.80 (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.80 / (download) - annotate - [select for diffs], Wed Apr 29 07:18:24 2020 UTC (3 years, 9 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.79: +3 -2 lines
Diff to previous 1.79 (colored)

Put forward declaration a little further forward to unbreak build.

Revision 1.79 / (download) - annotate - [select for diffs], Wed Apr 29 01:56:54 2020 UTC (3 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.78: +4 -2 lines
Diff to previous 1.78 (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.74.4.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:05 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.74.4.2: +21 -6 lines
Diff to previous 1.74.4.2 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.74.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:53 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.74.4.1: +2 -2 lines
Diff to previous 1.74.4.1 (colored) to branchpoint 1.74 (colored)

Merge changes from current as of 20200406

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:36 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

Sync with head.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Jan 17 20:08:09 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-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to
allow us to get shared locks (or no lock) on the returned vnode.  Matches
FreeBSD.

Revision 1.77 / (download) - annotate - [select for diffs], Thu Sep 26 17:33:18 2019 UTC (4 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.76: +22 -7 lines
Diff to previous 1.76 (colored)

Rewrite the procfs_fileno as an inline function to make it more clear what
it does...

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:06 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.74: +36 -30 lines
Diff to previous 1.74 (colored)

Sync with HEAD

Revision 1.76 / (download) - annotate - [select for diffs], Thu Apr 25 22:48:42 2019 UTC (4 years, 10 months ago) by mlelstv
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.75: +9 -6 lines
Diff to previous 1.75 (colored)

Restore mapping of file id to pid/type/fd.
Use 64bit file id to allow for 32bit fd and 25-26bit pid.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Mar 30 23:28:30 2019 UTC (4 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.74: +28 -25 lines
Diff to previous 1.74 (colored)

add a node for the process resource limits.

Revision 1.71.6.1 / (download) - annotate - [select for diffs], Thu Apr 12 13:42:48 2018 UTC (5 years, 10 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.71: +1 -5 lines
Diff to previous 1.71 (colored) next main 1.72 (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.74 / (download) - annotate - [select for diffs], Sun Dec 31 03:29:18 2017 UTC (6 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat
Branch point for: phil-wifi
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

rename some "cmdline" stuff now that it is used to print environment too

Revision 1.73 / (download) - annotate - [select for diffs], Sun Dec 31 03:02:23 2017 UTC (6 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.72: +3 -2 lines
Diff to previous 1.72 (colored)

Add an environ node

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:48 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.68.2.1: +5 -4 lines
Diff to previous 1.68.2.1 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

update from HEAD

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:09 2017 UTC (6 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.70: +6 -1 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with HEAD

Revision 1.72 / (download) - annotate - [select for diffs], Mon Aug 28 00:46:07 2017 UTC (6 years, 5 months ago) by kamil
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.71: +1 -5 lines
Diff to previous 1.71 (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.70.8.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:28 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.70: +6 -1 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with HEAD

Revision 1.70.12.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:04 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.70: +6 -1 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with HEAD

Revision 1.71 / (download) - annotate - [select for diffs], Thu Mar 30 20:16:29 2017 UTC (6 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.70: +6 -1 lines
Diff to previous 1.70 (colored)

add an auxv node.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:31 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.68: +12 -12 lines
Diff to previous 1.68 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:05 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.69: +11 -11 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Rebase.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jul 27 16:47:26 2014 UTC (9 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, pgoyette-localcount-base, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, nick-nhusb, bouyer-socketcan
Changes since 1.69: +11 -11 lines
Diff to previous 1.69 (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.67.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:05 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.67.2.1: +2 -2 lines
Diff to previous 1.67.2.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (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.68.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:09 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

sync with head

Revision 1.69 / (download) - annotate - [select for diffs], Sat Apr 5 18:42:32 2014 UTC (9 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Branch point for: tls-earlyentropy
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

On my 24 proc box I got ENOSPC, so make the routine return the size it wants
and try again.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:40 2012 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

sync with head

Revision 1.67.6.1 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:36 2012 UTC (11 years, 8 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

sync to latest -current.

Revision 1.68 / (download) - annotate - [select for diffs], Mon May 28 13:16:10 2012 UTC (11 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

add a task process subdirectory for emul linux

Revision 1.67 / (download) - annotate - [select for diffs], Tue Sep 27 01:23:59 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, 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-base9, jmcneill-usbmp-base8, 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.66: +2 -1 lines
Diff to previous 1.66 (colored)

define PROCFS_MAXNAMLEN and use it.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Sep 4 17:32:10 2011 UTC (12 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.65: +4 -1 lines
Diff to previous 1.65 (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.64.32.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:05 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.64: +1 -4 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

sync with head.

Revision 1.64.34.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:58 2008 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.64: +1 -4 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.64.36.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:18 2008 UTC (15 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.64: +1 -4 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Sync with head.

Revision 1.64.28.1 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:16 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.64: +1 -4 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Sync with HEAD.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Jun 28 01:34:06 2008 UTC (15 years, 8 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, simonb-wapbl-nbase, simonb-wapbl-base, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, 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, mjf-devfs2-base, matt-premerge-20091211, 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-premerge-20101231, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, ad-audiomp2-base, ad-audiomp2
Changes since 1.64: +1 -4 lines
Diff to previous 1.64 (colored)

Create sysctl entries during module initialisation and destroy them
appropriately.

Many of these file systems are now ready for modularisation.

Revision 1.56.12.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:55 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.56.12.3: +10 -1 lines
Diff to previous 1.56.12.3 (colored) to branchpoint 1.56 (colored) next main 1.57 (colored)

sync with head.

Revision 1.63.8.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:43 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.63: +10 -1 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Sync with head.

Revision 1.63.6.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:34 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.63: +10 -1 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Sync with head.

Revision 1.64 / (download) - annotate - [select for diffs], Thu May 24 00:37:40 2007 UTC (16 years, 9 months ago) by agc
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, wrstuden-revivesa-base-1, wrstuden-revivesa-base, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl, mjf-devfs2
Changes since 1.63: +10 -1 lines
Diff to previous 1.63 (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.56.12.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:30 2007 UTC (17 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.56.12.2: +6 -4 lines
Diff to previous 1.56.12.2 (colored) to branchpoint 1.56 (colored)

sync with head.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:36 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, yamt-idlelwp, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.62: +6 -4 lines
Diff to previous 1.62 (colored)

Merge newlock2 to head.

Revision 1.56.12.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:18 2006 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.56.12.1: +9 -1 lines
Diff to previous 1.56.12.1 (colored) to branchpoint 1.56 (colored)

sync with head.

Revision 1.59.22.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:59 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.59.22.1: +6 -1 lines
Diff to previous 1.59.22.1 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

sync with head.

Revision 1.59.20.2 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:29 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.59.20.1: +9 -1 lines
Diff to previous 1.59.20.1 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

Sync with head.

Revision 1.59.20.1 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:38 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.59: +6 -4 lines
Diff to previous 1.59 (colored)

Checkpoint work in progress.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Oct 29 22:35:35 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.61: +4 -1 lines
Diff to previous 1.61 (colored)

add an "emul" file node.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Oct 25 18:59:52 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.60: +3 -1 lines
Diff to previous 1.60 (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.59.22.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:23 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.59: +4 -1 lines
Diff to previous 1.59 (colored)

sync with head

Revision 1.60 / (download) - annotate - [select for diffs], Wed Sep 20 08:09:05 2006 UTC (17 years, 5 months ago) by manu
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.59: +4 -1 lines
Diff to previous 1.59 (colored)

Emulate Linux's /proc/devices

Revision 1.56.12.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:26 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.56: +50 -48 lines
Diff to previous 1.56 (colored)

sync with head.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:51 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.58: +20 -20 lines
Diff to previous 1.58 (colored)

merge ktrace-lwp.

Revision 1.47.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:10:32 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.7: +49 -47 lines
Diff to previous 1.47.2.7 (colored) next main 1.48 (colored)

Sync with HEAD. Here we go again...

Revision 1.58 / (download) - annotate - [select for diffs], Sat Oct 1 03:17:37 2005 UTC (18 years, 4 months ago) by atatat
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.57: +3 -1 lines
Diff to previous 1.57 (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.57 / (download) - annotate - [select for diffs], Tue Aug 30 20:08:01 2005 UTC (18 years, 6 months ago) by xtraeme
Branch: MAIN
Changes since 1.56: +47 -47 lines
Diff to previous 1.56 (colored)

Remove __P()

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

Sync with HEAD.

Revision 1.47.2.6 / (download) - annotate - [select for diffs], Tue Sep 21 13:36:32 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.5: +19 -19 lines
Diff to previous 1.47.2.5 (colored)

Fix the sync with head I botched.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Sep 20 17:53:08 2004 UTC (19 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.55: +4 -1 lines
Diff to previous 1.55 (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.47.2.5 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:15 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.4: +19 -19 lines
Diff to previous 1.47.2.4 (colored)

Sync with HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Aug 27 07:02:45 2004 UTC (19 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

Do previous slightly differently - just pass a struct lwp * and derive the
struct proc *.

OK'd by Jaromir.

Revision 1.47.2.4 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:40 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.3: +2 -2 lines
Diff to previous 1.47.2.3 (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.54 / (download) - annotate - [select for diffs], Sat Aug 21 15:59:32 2004 UTC (19 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

fix process used for /proc/<pid>/stat contents - it should be process
<pid>, not the current process looking at the information

Revision 1.47.2.3 / (download) - annotate - [select for diffs], Wed Aug 18 10:19:08 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.2: +2 -2 lines
Diff to previous 1.47.2.2 (colored)

Revert to passing struct proc for {exit,exec}hook.

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:06 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.47.2.1: +62 -24 lines
Diff to previous 1.47.2.1 (colored)

Sync with HEAD

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Sun May 23 10:44:45 2004 UTC (19 years, 9 months ago) by tron
Branch: netbsd-2-0
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-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
Changes since 1.52: +4 -1 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Pull up revision 1.53 (requested by atatat in ticket #374):
Tweak sysctl setup functions (the macros, actually) for use in lkms,
and tweak lkminit_*.c (where applicable) to call them, and to call
sysctl_teardown() when being unloaded.
This consists of (1) making setup functions not be static when being
compiled as lkms (change to sys/sysctl.h), (2) making prototypes
visible for the various setup functions in header files (changes to
various header files), and (3) making simple "load" and "unload"
functions in the actual lkminit stuff.
linux_sysctl.c also needs its root exposed (ie, made not static) for
this (when built as an lkm).

Revision 1.53 / (download) - annotate - [select for diffs], Thu May 20 06:34:32 2004 UTC (19 years, 9 months ago) by atatat
Branch: MAIN
Changes since 1.52: +4 -1 lines
Diff to previous 1.52 (colored)

Tweak sysctl setup functions (the macros, actually) for use in lkms,
and tweak lkminit_*.c (where applicable) to call them, and to call
sysctl_teardown() when being unloaded.

This consists of (1) making setup functions not be static when being
compiled as lkms (change to sys/sysctl.h), (2) making prototypes
visible for the various setup functions in header files (changes to
various header files), and (3) making simple "load" and "unload"
functions in the actual lkminit stuff.

linux_sysctl.c also needs its root exposed (ie, made not static) for
this (when built as an lkm).

Revision 1.52 / (download) - annotate - [select for diffs], Wed Dec 10 14:19:02 2003 UTC (20 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.51: +3 -2 lines
Diff to previous 1.51 (colored)

a little bit more namespace sanity

Revision 1.51 / (download) - annotate - [select for diffs], Fri Oct 3 16:34:31 2003 UTC (20 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

terminate snprintb 'new' format strings correctly.
(fixes overrun in mount_*)

Revision 1.50 / (download) - annotate - [select for diffs], Sat Sep 27 15:32:50 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Put pfsnode in the #ifdef _KERNEL too, so this actually compiles.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Sep 27 13:29:02 2003 UTC (20 years, 5 months ago) by darcy
Branch: MAIN
Changes since 1.48: +24 -22 lines
Diff to previous 1.48 (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.48 / (download) - annotate - [select for diffs], Thu Aug 7 16:32:41 2003 UTC (20 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.47: +34 -2 lines
Diff to previous 1.47 (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.47.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:52 2003 UTC (20 years, 7 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.47: +21 -21 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:44 2003 UTC (20 years, 8 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.46: +20 -20 lines
Diff to previous 1.46 (colored)

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

Revision 1.46 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:34 2003 UTC (20 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (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.45 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:04 2003 UTC (20 years, 8 months ago) by darrenr
Branch: MAIN
Changes since 1.44: +21 -21 lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Wed May 28 18:03:15 2003 UTC (20 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.43: +4 -1 lines
Diff to previous 1.43 (colored)

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

Revision 1.43 / (download) - annotate - [select for diffs], Fri Apr 18 10:00:19 2003 UTC (20 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

change PROCFS_FILENO() to use 5 bits for 'type', since there are more than
16 types nowadays (i.e. Pfd is 17)

Revision 1.42 / (download) - annotate - [select for diffs], Thu Apr 17 19:04:25 2003 UTC (20 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

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

Revision 1.41 / (download) - annotate - [select for diffs], Tue Feb 25 21:00:31 2003 UTC (21 years ago) by jrf
Branch: MAIN
Changes since 1.40: +4 -1 lines
Diff to previous 1.40 (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.40 / (download) - annotate - [select for diffs], Sat Jan 18 09:18:06 2003 UTC (21 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.39: +6 -6 lines
Diff to previous 1.39 (colored)

Merge the nathanw_sa branch.

Revision 1.33.2.10 / (download) - annotate - [select for diffs], Tue Jan 7 21:41:13 2003 UTC (21 years, 1 month ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.33.2.9: +11 -6 lines
Diff to previous 1.33.2.9 (colored) next main 1.34 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 3 13:21:18 2003 UTC (21 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.38: +11 -6 lines
Diff to previous 1.38 (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.33.2.9 / (download) - annotate - [select for diffs], Tue Oct 15 18:02:00 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.8: +5 -5 lines
Diff to previous 1.33.2.8 (colored)

Make _validfoo() routines go back to taking a proc.

Revision 1.34.2.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:33 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.34.2.2: +4 -1 lines
Diff to previous 1.34.2.2 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.33.2.8 / (download) - annotate - [select for diffs], Sun Oct 6 00:10:55 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.33.2.7: +4 -1 lines
Diff to previous 1.33.2.7 (colored)

Sync with HEAD.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Sep 21 18:09:30 2002 UTC (21 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.37: +4 -1 lines
Diff to previous 1.37 (colored)

MNT_GETARGS support

Revision 1.34.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:50:13 2002 UTC (21 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.34.2.1: +1 -2 lines
Diff to previous 1.34.2.1 (colored) to branchpoint 1.34 (colored)

catch up with -current on kqueue branch

Revision 1.33.2.7 / (download) - annotate - [select for diffs], Thu Jun 20 03:48:00 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.6: +1 -2 lines
Diff to previous 1.33.2.6 (colored)

Catch up to -current.

Revision 1.37 / (download) - annotate - [select for diffs], Thu May 9 15:44:45 2002 UTC (21 years, 9 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, gehenna-devsw-base, gehenna-devsw
Changes since 1.36: +1 -2 lines
Diff to previous 1.36 (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.33.2.6 / (download) - annotate - [select for diffs], Mon Apr 1 21:31:34 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.5: +2 -2 lines
Diff to previous 1.33.2.5 (colored)

procfs_domem() should take proc *, proc *; not proc *, lwp *.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:01:41 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.34: +17 -1 lines
Diff to previous 1.34 (colored)

Sync kqueue branch with -current.

Revision 1.33.2.5 / (download) - annotate - [select for diffs], Wed Jan 9 02:53:57 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.4: +2 -2 lines
Diff to previous 1.33.2.4 (colored)

Adapt procfs_machdep_rw() to LWPs.

Revision 1.33.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:33:40 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.3: +16 -1 lines
Diff to previous 1.33.2.3 (colored)

Catch up to -current.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Dec 5 00:58:05 2001 UTC (22 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.35: +16 -1 lines
Diff to previous 1.35 (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.34.4.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:47:22 2001 UTC (22 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Catch up with -current.

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

Catch up to -current.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Sep 15 16:12:59 2001 UTC (22 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)

add a new VFS op, vfs_reinit, which is called when desiredvnodes is
adjusted via sysctl.  file systems that have hash tables which are
sized based on the value of this variable now resize those hash tables
using the new value.  the max number of FFS softdeps is also recalculated.

convert various file systems to use the <sys/queue.h> macros for
their hash tables.

Revision 1.27.2.5 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:35 2001 UTC (22 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27.2.4: +4 -3 lines
Diff to previous 1.27.2.4 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

Sync with HEAD

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Mon Apr 9 01:58:09 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.1: +4 -3 lines
Diff to previous 1.33.2.1 (colored)

Catch up with -current.

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Fri Mar 30 21:47:21 2001 UTC (22 years, 11 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.29: +24 -6 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Pull up revision 1.31 (requested by fvdl):
  Add some required Linux emulation bits to support the Linux
  version of VMware.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Mar 29 22:41:52 2001 UTC (22 years, 11 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base
Branch point for: thorpej-devvp, kqueue
Changes since 1.33: +4 -3 lines
Diff to previous 1.33 (colored)

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

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:51 2001 UTC (22 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33: +10 -10 lines
Diff to previous 1.33 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.27.2.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:17:01 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27.2.3: +2 -4 lines
Diff to previous 1.27.2.3 (colored) to branchpoint 1.27 (colored)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jan 25 12:44:56 2001 UTC (23 years, 1 month ago) by jdolecek
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.32: +1 -3 lines
Diff to previous 1.32 (colored)

g/c pmnt_mp in struct procfs_args

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jan 18 20:28:21 2001 UTC (23 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

constify

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:47 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27.2.2: +23 -5 lines
Diff to previous 1.27.2.2 (colored) to branchpoint 1.27 (colored)

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

Revision 1.31 / (download) - annotate - [select for diffs], Wed Jan 17 00:09:07 2001 UTC (23 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.30: +24 -6 lines
Diff to previous 1.30 (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.27.2.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:15:01 2000 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27.2.1: +1 -2 lines
Diff to previous 1.27.2.1 (colored) to branchpoint 1.27 (colored)

Sync with HEAD.

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

remove dead code and other misc cleanup.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:48 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27: +13 -2 lines
Diff to previous 1.27 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 16 18:08:26 2000 UTC (23 years, 11 months ago) by jdolecek
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.28: +2 -1 lines
Diff to previous 1.28 (colored)

Add new VFS op routine - vfs_done and call it on filesystem detach
in vfs_detach(). vfs_done may free global filesystem's resources,
typically those allocated in respective filesystem's init function.
Needed so those filesystems which went in via LKM have a chance to
clean after themselves before unloading. This fixes random panics
when LKM for filesystem using pools was loaded and unloaded several
times.

For each leaf filesystem, add appropriate vfs_done routine.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Tue Feb 1 22:56:20 2000 UTC (24 years ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.26: +12 -2 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Pull up revision 1.28 (via patch, requested by fvdl):
  Close procfs security hole.  Fixes SA#2000-001.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jan 25 21:52:04 2000 UTC (24 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.27: +12 -2 lines
Diff to previous 1.27 (colored)

At mount/unmount time, add an exec hook to revoke all vnodes iff the
process is about to exec a sugid binary.

To speed up things, use hashing for vnode allocation, like other filesystems
do. This avoids walking the whole procfs node list in the revoke case too.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Sep 2 23:33:45 1999 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:27 1999 UTC (24 years, 11 months ago) by mrg
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, chs-ubc2-base, chs-ubc2
Branch point for: netbsd-1-4
Changes since 1.25: +1 -9 lines
Diff to previous 1.25 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Mar 13 00:57:13 1999 UTC (24 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +9 -1 lines
Diff to previous 1.24 (colored)

Expose procfs_rwmem().  (This function will go away entirely when we
delete Mach VM.)

Revision 1.24 / (download) - annotate - [select for diffs], Fri Mar 12 18:45:40 1999 UTC (24 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.23: +20 -10 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 25 02:20:08 1999 UTC (25 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.22: +5 -2 lines
Diff to previous 1.22 (colored)

Add /proc/#/map. From FreeBSD.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Aug 9 20:51:09 1998 UTC (25 years, 6 months ago) by perry
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 1 02:21:16 1998 UTC (26 years ago) by fvdl
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.20: +2 -3 lines
Diff to previous 1.20 (colored)

Merge with Lite2 + local changes

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

Import 4.4BSD-Lite2

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

Import 4.4BSD-Lite for reference

Revision 1.18.4.2 / (download) - annotate - [select for diffs], Thu Aug 28 00:21:45 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.18.4.1: +2 -2 lines
Diff to previous 1.18.4.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Aug 27 08:52:51 1997 UTC (26 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, 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.19: +2 -2 lines
Diff to previous 1.19 (colored)

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

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:14:11 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.18: +3 -1 lines
Diff to previous 1.18 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Aug 12 22:47:18 1997 UTC (26 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +3 -1 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Thu May 8 16:20:19 1997 UTC (26 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (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.17 / (download) - annotate - [select for diffs], Mon Feb 12 15:01:41 1996 UTC (28 years ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

close PR/2063: procfs_rw prototyped twice with different prototypes

Revision 1.16 / (download) - annotate - [select for diffs], Fri Feb 9 22:40:46 1996 UTC (28 years ago) by christos
Branch: MAIN
Changes since 1.15: +5 -43 lines
Diff to previous 1.15 (colored)

miscfs prototype changes

Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 9 18:47:48 1996 UTC (28 years ago) by mycroft
Branch: MAIN
Changes since 1.14: +1 -3 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Mon Oct 9 11:18:51 1995 UTC (28 years, 4 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.13: +3 -14 lines
Diff to previous 1.13 (colored)

Add support for cookies, mostly from Greg Hudson.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Mar 29 22:08:30 1995 UTC (28 years, 11 months ago) by briggs
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

KERNEL -> _KERNEL

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 29 07:58:53 1994 UTC (29 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.11: +6 -6 lines
Diff to previous 1.11 (colored)

light clean; make sure headers are properly included, types are OK, etc.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 29 06:34:44 1994 UTC (29 years, 8 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.10: +3 -2 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 15 22:59:02 1994 UTC (29 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +2 -3 lines
Diff to previous 1.9 (colored)

Minor update from JSP after merging my changes.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 8 11:33:33 1994 UTC (29 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +69 -172 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Tue Apr 12 02:55:51 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.7: +6 -1 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Sun Feb 6 14:01:16 1994 UTC (30 years ago) by ws
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

If you add files, be sure to have enough bits to encode an inode number!

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 28 07:03:16 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

make a fpregs file.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jan 20 21:23:04 1994 UTC (30 years, 1 month ago) by ws
Branch: MAIN
Changes since 1.4: +6 -6 lines
Diff to previous 1.4 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 11 18:02:06 1994 UTC (30 years, 1 month ago) by ws
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Fix ugliness left over from my last mod

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jan 9 19:44:03 1994 UTC (30 years, 1 month ago) by ws
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (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.2 / (download) - annotate - [select for diffs], Wed Jan 5 11:08:07 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -5 lines
Diff to previous 1.1 (colored)

fix UFS vs 'real' fs type mixups

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 5 07:51:12 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN

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

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>