summaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs/procfs_subr.c
Commit message (Collapse)AuthorAgeFilesLines
* - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION fileRuslan Ermilov2001-05-231-416/+0
| | | | | | | | | | | | | | | | | | systems were repo-copied from sys/miscfs to sys/fs. - Renamed the following file systems and their modules: fdesc -> fdescfs, portal -> portalfs, union -> unionfs. - Renamed corresponding kernel options: FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS. - Install header files for the above file systems. - Removed bogus -I${.CURDIR}/../../sys CFLAGS from userland Makefiles. Notes: svn path=/head/; revision=77031
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inMark Murray2001-05-011-4/+5
| | | | | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations) Notes: svn path=/head/; revision=76166
* Change the pfind() and zpfind() functions to lock the process that theyJohn Baldwin2001-04-241-1/+3
| | | | | | | | | find before releasing the allproc lock and returning. Reviewed by: -smp, dfr, jake Notes: svn path=/head/; revision=75893
* Correct #includes to work with fixed sys/mount.h.Greg Lehey2001-04-231-0/+2
| | | | Notes: svn path=/head/; revision=75858
* Remove unneeded #include <sys/kernel.h>Poul-Henning Kamp2000-04-291-1/+0
| | | | Notes: svn path=/head/; revision=59760
* Move procfs_fullpath() to vfs_cache.c, with a rename to textvp_fullpath().Brian Feldman2000-04-261-96/+0
| | | | | | | | | | | | | There's no excuse to have code in synthetic filestores that allows direct references to the textvp anymore. Feature requested by: msmith Feature agreed to by: warner Move requested by: phk Move agreed to by: bde Notes: svn path=/head/; revision=59652
* There's no reason to make "file" 0500 rather than 0555.Brian Feldman2000-04-221-1/+3
| | | | Notes: svn path=/head/; revision=59482
* Welcome back our old friend from procfs, "file"!Brian Feldman2000-04-221-0/+104
| | | | Notes: svn path=/head/; revision=59481
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Implement support for hardware debug registers on the i386.Jonathan Lemon1999-07-091-1/+6
| | | | | | | Submitted by: Brian Dean <brdean@unx.sas.com> Notes: svn path=/head/; revision=48691
* Add a new "file" to procfs: "rlimit" which shows the resource limits forPoul-Henning Kamp1999-04-301-1/+6
| | | | | | | | | | | the process. PR: 11342 Submitted by: Adrian Chadd adrian@freebsd.org Reviewed by: phk Notes: svn path=/head/; revision=46201
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-271-3/+3
| | | | | | | kernel compile Notes: svn path=/head/; revision=43305
* A partial implementation of the procfs cmdline pseudo-file. ThisPeter Wemm1999-01-051-1/+6
| | | | | | | | | | | is enough to satisfy things like StarOffice. This is a hack, but doing it properly would be a LOT of work, and would require extensive grovelling around in the user address space to find the argv[]. Obtained from: Mostly from Andrzej Bialecki <abial@nask.pl>. Notes: svn path=/head/; revision=42301
* Fix a problem with procfs_exit() that resulted in missing some procfsSean Eric Fagan1997-12-121-12/+26
| | | | | | | | | nodes; this also apparantly caused a panic in some circumstances. Also, since procfs_exit() is getting rid of the nodes when a process exits, don't bother checking for the process' existance in procfs_inactive(). Notes: svn path=/head/; revision=31674
* Code to prevent a panic caused by procfs_exit(). Note that i don't knowSean Eric Fagan1997-12-091-3/+11
| | | | | | | | | | | | | | | | | | what is teh root cause -- but, sometimes, a procfs vnode in pfshead is apparantly corrupt (or a UFS vnode instead). Without this patch, I can get it to panic by doing (in csh) while (1) ps auxwww end and it will panic when the PID's wrap. With it, it does not panic. Yes -- I know that this is NOT the right way to fix it. But I haven't been able to get it to panic yet (which confuses me). I am going to be looking into the vgone() code now, as that may be a part of it. Notes: svn path=/head/; revision=31640
* Use at_exit() to invoke procfs_exit() instead of calling it directly.Sean Eric Fagan1997-12-081-2/+3
| | | | | | | | | | | Note that an unload facility should be used to call rm_at_exit() (if procfs is being loaded as an LKM and is subsequently removed), but it was non-obvious how to do this in the VFS framework. Reviewed by: Julian Elischer Notes: svn path=/head/; revision=31618
* Changes to allow event-based process monitoring and control.Sean Eric Fagan1997-12-061-1/+12
| | | | Notes: svn path=/head/; revision=31564
* Removed unused #includes.Bruce Evans1997-08-021-3/+1
| | | | Notes: svn path=/head/; revision=27845
* Style fix my previous commit.Alexander Langer1997-06-261-2/+2
| | | | Notes: svn path=/head/; revision=26962
* Block all write operations to /proc/1/* when securelevel > 0.Alexander Langer1997-06-211-1/+3
| | | | | | | | | | The additional check in procfs_ctl.c could be backed out, but I'm leaving it in for good measure. Reviewed by: Theo de Raadt <deraadt@OpenBSD.org> Notes: svn path=/head/; revision=26769
* Fixed missing initialisation of vp->v_type for types Pfile and PmemBruce Evans1997-03-081-1/+2
| | | | | | | | | | in procfs_allocvp(). This fixes at least stat() of /proc/*/mem. stat() of /proc/*/file already worked. I think procfs_allocvp() isn't actually called for type Pfile. Notes: svn path=/head/; revision=23526
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* This is the kernel Lite/2 commit. There are some requisite userlandJohn Dyson1997-02-101-25/+30
| | | | | | | | | | | | | | | | | | changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org> Notes: svn path=/head/; revision=22521
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Fixed the easy cases of const poisoning in the kernel. Cosmetic.Bruce Evans1996-08-311-2/+2
| | | | Notes: svn path=/head/; revision=17974
* Implement locking for pfs nodes, when at the leaf. Concurrent accessJohn Dyson1996-07-021-10/+29
| | | | | | | | | | to information from a single process causes hangs. Specifically, this fixes problems (hangs) with concurrent ps commands, when the system is under heavy memory load. Reviewed by: davidg Notes: svn path=/head/; revision=16901
* Clean-up the new VM map procfs code, and also add support for executableJohn Dyson1996-06-181-1/+5
| | | | | | | | format file "etype". It contains a description of the binary type for a process. Notes: svn path=/head/; revision=16474
* Add a feature to procfs to allow display of the process address mapJohn Dyson1996-06-171-1/+5
| | | | | | | | | | with multiple entries as follows: start address, end address, resident pages in range, private pages in range, RW/RO, COW or not, (vnode/device/swap/default). Notes: svn path=/head/; revision=16467
* Moved the fsnode MALLOC to before the call to getnewvnode() so that theDavid Greenman1996-06-121-6/+12
| | | | | | | | | | | process won't possibly block before filling in the fsnode pointer (v_data) which might be dereferenced during a sync since the vnode is put on the mnt_vnodelist by getnewvnode. Pointed out by Matt Day <mday@artisoft.com> Notes: svn path=/head/; revision=16312
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8876
* Made /proc/n/mem file group kmem and group readable. Needed to fix ps soDavid Greenman1995-04-151-2/+3
| | | | | | | that it doesn't need to be setuid root. Notes: svn path=/head/; revision=7832
* Use tsleep() rather than sleep so that 'ps' is more informative aboutDavid Greenman1994-10-061-2/+2
| | | | | | | the wait. Notes: svn path=/head/; revision=3396
* Added $Id$David Greenman1994-08-021-2/+1
| | | | Notes: svn path=/head/; revision=1817
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-241-0/+314
Notes: svn path=/head/; revision=1541