John Baldwin
ec447af191
- Proc locking.
...
- Use queue macros.
- Use NULL instead of 0 for pointers.
Reviewed by: des
2001-01-23 22:13:07 +00:00
Jake Burkholder
549f00c753
Protect proc.p_pptr with the proctree lock.
2001-01-10 15:41:26 +00:00
Dag-Erling Smørgrav
6e66bfacfa
Use kinfo_proc instead of eproc (which Kirk deep-sixed earlier this week)
...
Generate a version string that looks just like a real Linux one - almost :)
Use sbufs everywhere instead of sprintf(). Note that this is still imperfect,
as the code does not check whether the sbuf overflowed - but it'll still
work better than before, since if the sbuf overflows, the code now simply
copies out 0 bytes instead of causing a trap (or worse, corrupting kernel
structures)
2000-12-13 20:22:24 +00:00
Dag-Erling Smørgrav
96e37d17e6
Point #includes at compat/linprocfs instead of i386/linux/linprocfs.
2000-12-12 22:06:05 +00:00
Dag-Erling Smørgrav
f786d43aac
A bunch of fixes that have been rotting in my tree for a month or two
...
waiting for procfs to get fixed:
- Use fill_eproc() to obtain correct VM stats. Attempt to compute VmLib.
- Fill some more fields in proc/<pid>/stat, and add four (unimplemented)
fields after studying a recent Linux kernel.
- Compute CPU frequency only once instead of twice.
- Fix some comments that were OBE.
- Fix indentation except where it makes the code less readable.
2000-12-09 13:25:54 +00:00
John Baldwin
0de7d1da20
Protect access to p_stat with sched_lock.
2000-12-01 06:34:19 +00:00
Dag-Erling Smørgrav
fbbd9aebdd
Add bogomips to cpuinfo (set it equal to the CPU frequency, which is bogus
...
but not more so than Linux' definition).
This should get the IBM JDK 1.3 working again.
Prompted by: sobomax
2000-11-27 11:10:03 +00:00
Dag-Erling Smørgrav
fd9f324055
Check that p->p_pptr is not NULL - kernel processes have no parents!
2000-11-06 03:23:56 +00:00
Dag-Erling Smørgrav
f8c05e5019
Bring cpuinfo closer to what it looks like in Linux 2.2.
...
Submitted by: R Bradford Jones <brad@kazrak.com>
2000-10-25 22:38:23 +00:00
Dag-Erling Smørgrav
886a6f6fca
Add /proc/<pid>/status and /proc/<pid>/stat (the latter being mostly
...
zeroes for the time being).
Prompted by: Nathan Boeger <nathan@khmere.com>
2000-10-25 22:12:59 +00:00
Dag-Erling Smørgrav
fecfecfbd0
Remove unused variables.
2000-09-09 14:35:35 +00:00
Dag-Erling Smørgrav
ddc0b9925d
Add stat, uptime and version.
...
Note that version currently returns the first line of the version string
from vers.c, which is not quite what a Linux system would return.
2000-09-09 11:44:58 +00:00
Dag-Erling Smørgrav
81dc16f619
Pierre Beyssac originally derived linprocfs from procfs, and I've made (and
...
will keep making) significant modifications, so I'm adding both our copyrights
to the top of these files.
2000-09-07 16:44:26 +00:00
Bruce Evans
c6e4d7c5ba
Fixed null pointer panic for accessing "meminfo" when there is no swap.
2000-08-12 21:08:42 +00:00
Dag-Erling Smørgrav
ce4e34c875
Make exe a symlink.
2000-05-24 07:37:02 +00:00
Mike Smith
ce0cdebef3
Fix include paths so that this builds correctly.
...
Submitted by: Mike Pritchard <mpp@mppsystems.com>
2000-04-21 05:54:11 +00:00
Mike Smith
06ab4b95d8
Move the linprocfs bits under the rest of the i386 linux compatibility
...
code.
2000-04-20 03:54:27 +00:00