summaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs/procfs_map.c
Commit message (Collapse)AuthorAgeFilesLines
* useracc() the prequel:Poul-Henning Kamp1999-10-291-1/+0
| | | | | | | | | | | | | | Merge the contents (less some trivial bordering the silly comments) of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>. This puts the #defines for the vm_inherit_t and vm_prot_t types next to their typedefs. This paves the road for the commit to follow shortly: change useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE} as argument. Notes: svn path=/head/; revision=52635
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Hide access to vmspace:vm_pmap with inline function vmspace_pmap(). ThisLuoqi Chen1999-02-191-2/+2
| | | | | | | | | | is the preparation step for moving pmap storage out of vmspace proper. Reviewed by: Alan Cox <alc@cs.rice.edu> Matthew Dillion <dillon@apollo.backplane.com> Notes: svn path=/head/; revision=44146
* Remove MAP_ENTRY_IS_A_MAP 'share' maps. These maps were once used toMatthew Dillon1999-02-071-2/+2
| | | | | | | | | attempt to optimize forks but were essentially given-up on due to problems and replaced with an explicit dup of the vm_map_entry structure. Prior to the removal, they were entirely unused. Notes: svn path=/head/; revision=43748
* Correct a format mismatch on 64-bit architectures. This shouldJohn Polstra1999-02-051-3/+3
| | | | | | | fix the erroneous values in the procfs "map" file on the Alpha. Notes: svn path=/head/; revision=43634
* This is a rather large commit that encompasses the new swapper,Matthew Dillon1999-01-211-6/+4
| | | | | | | | | | | | | changes to the VM system to support the new swapper, VM bug fixes, several VM optimizations, and some additional revamping of the VM code. The specific bug fixes will be documented with additional forced commits. This commit is somewhat rough in regards to code cleanup issues. Reviewed by: "John S. Dyson" <root@dyson.iquest.net>, "David Greenman" <dg@root.com> Notes: svn path=/head/; revision=42957
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()Archie Cobbs1998-12-041-2/+3
| | | | | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=41514
* Tighten up management of memory and swap space during map allocation,John Dyson1998-04-291-13/+27
| | | | | | | | | | deallocation cycles. This should provide a measurable improvement on swap and memory allocation on loaded systems. It is unlikely a complete solution. Also, provide more map info with procfs. Chuck Cranor spurred on this improvement. Notes: svn path=/head/; revision=35497
* Back out DIAGNOSTIC changes.Eivind Eklund1998-02-061-3/+1
| | | | Notes: svn path=/head/; revision=33134
* Turn DIAGNOSTIC into a new-style option.Eivind Eklund1998-02-041-1/+3
| | | | Notes: svn path=/head/; revision=33108
* Make our v_usecount vnode reference count work identically to theJohn Dyson1998-01-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | original BSD code. The association between the vnode and the vm_object no longer includes reference counts. The major difference is that vm_object's are no longer freed gratuitiously from the vnode, and so once an object is created for the vnode, it will last as long as the vnode does. When a vnode object reference count is incremented, then the underlying vnode reference count is incremented also. The two "objects" are now more intimately related, and so the interactions are now much less complex. When vnodes are now normally placed onto the free queue with an object still attached. The rundown of the object happens at vnode rundown time, and happens with exactly the same filesystem semantics of the original VFS code. There is absolutely no need for vnode_pager_uncache and other travesties like that anymore. A side-effect of these changes is that SMP locking should be much simpler, the I/O copyin/copyout optimizations work, NFS should be more ponderable, and further work on layered filesystems should be less frustrating, because of the totally coherent management of the vnode objects and vnodes. Please be careful with your system while running this code, but I would greatly appreciate feedback as soon a reasonably possible. Notes: svn path=/head/; revision=32286
* Don't try to obtain an excluive lock on the vm map, since a deadlock mightTor Egge1997-11-141-3/+3
| | | | | | | occur if the process owning the map is wiring pages. Notes: svn path=/head/; revision=31174
* Removed unused #includes.Bruce Evans1997-08-021-16/+1
| | | | Notes: svn path=/head/; revision=27845
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includeBruce Evans1997-03-241-2/+1
| | | | | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient. Notes: svn path=/head/; revision=24203
* 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-1/+1
| | | | | | | | | | | | | | | | | | 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
* Change the map entry flags from bitfields to bitmasks. AllowsJohn Dyson1997-01-161-2/+2
| | | | | | | for some code simplification. Notes: svn path=/head/; revision=21754
* 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
* Fix a potential deadlock from the previous commit.John Dyson1996-10-301-2/+4
| | | | Notes: svn path=/head/; revision=19261
* Fix the /proc/???/map file so that it is possible to read an arbitrarilyJohn Dyson1996-10-301-18/+23
| | | | | | | | large process map. Another commit will follow to fix a problem just found during this one... Sorry!!! :-(. Notes: svn path=/head/; revision=19260
* Modify slightly the output from the map file in /proc. Now theJohn Dyson1996-07-271-2/+4
| | | | | | | executable bit is shown. Notes: svn path=/head/; revision=17306
* Under certain circumstances, reading the /proc/*/map file canJohn Dyson1996-07-271-2/+5
| | | | | | | crash the system. Nonexistant objects were not handled correctly. Notes: svn path=/head/; revision=17303
* Clean-up the new VM map procfs code, and also add support for executableJohn Dyson1996-06-181-1/+8
| | | | | | | | format file "etype". It contains a description of the binary type for a process. Notes: svn path=/head/; revision=16474
* This file is the "meat" of the process address space capability. If youJohn Dyson1996-06-171-0/+169
would like other things added, just ask!!! It might be pretty easy to add. Notes: svn path=/head/; revision=16468