summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs/procfs_subr.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a new "file" to procfs: "rlimit" which shows the resource limits forphk1999-04-301-1/+6
| | | | | | | | the process. PR: 11342 Submitted by: Adrian Chadd adrian@freebsd.org Reviewed by: phk
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-3/+3
| | | | kernel compile
* A partial implementation of the procfs cmdline pseudo-file. Thispeter1999-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>.
* Fix a problem with procfs_exit() that resulted in missing some procfssef1997-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().
* Code to prevent a panic caused by procfs_exit(). Note that i don't knowsef1997-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.
* Use at_exit() to invoke procfs_exit() instead of calling it directly.sef1997-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
* Changes to allow event-based process monitoring and control.sef1997-12-061-1/+12
|
* Removed unused #includes.bde1997-08-021-3/+1
|
* Style fix my previous commit.alex1997-06-261-2/+2
|
* Block all write operations to /proc/1/* when securelevel > 0.alex1997-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>
* Fixed missing initialisation of vp->v_type for types Pfile and Pmembde1997-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.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* This is the kernel Lite/2 commit. There are some requisite userlanddyson1997-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>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Fixed the easy cases of const poisoning in the kernel. Cosmetic.bde1996-08-311-2/+2
|
* Implement locking for pfs nodes, when at the leaf. Concurrent accessdyson1996-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
* Clean-up the new VM map procfs code, and also add support for executabledyson1996-06-181-1/+5
| | | | | format file "etype". It contains a description of the binary type for a process.
* Add a feature to procfs to allow display of the process address mapdyson1996-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).
* Moved the fsnode MALLOC to before the call to getnewvnode() so that thedg1996-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>
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Made /proc/n/mem file group kmem and group readable. Needed to fix ps sodg1995-04-151-2/+3
| | | | that it doesn't need to be setuid root.
* Use tsleep() rather than sleep so that 'ps' is more informative aboutdg1994-10-061-2/+2
| | | | the wait.
* Added $Id$dg1994-08-021-2/+1
|
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+314
OpenPOWER on IntegriCloud