aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/procfs
Commit message (Collapse)AuthorAgeFilesLines
* MFtbemd:Warner Losh2010-08-231-1/+1
| | | | | | | | | | | | Use MACHINE_CPUARCH in preference to MACHINE_ARCH. The former is the source code location of the machine, the latter the binary output. In general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless we're tesitng for a specific target. The isn't even moot for i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86, although a specific cleanup for that likely would be needed... Notes: svn path=/head/; revision=211690
* Provide groundwork for 32-bit binary compatibility on non-x86 platforms,Nathan Whitehorn2010-03-111-1/+1
| | | | | | | | | | | | for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32 option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts of the kernel and enhances the freebsd32 compatibility code to support big-endian platforms. Reviewed by: kib, jhb Notes: svn path=/head/; revision=205014
* Add per-process osrel node to the procfs, to allow read and set p_osrelKonstantin Belousov2009-09-231-0/+1
| | | | | | | | | | value for the process. Approved by: des (procfs maintainer) MFC after: 3 weeks Notes: svn path=/head/; revision=197428
* Fix our ioctl(2) implementation when the argument is "int". NewRuslan Ermilov2006-09-271-0/+1
| | | | | | | | | | | | | | | | ioctls passing integer arguments should use the _IOWINT() macro. This fixes a lot of ioctl's not working on sparc64, most notable being keyboard/syscons ioctls. Full ABI compatibility is provided, with the bonus of fixing the handling of old ioctls on sparc64. Reviewed by: bde (with contributions) Tested by: emax, marius MFC after: 1 week Notes: svn path=/head/; revision=162711
* Define the target for opt_compat.h only if KERNBUILDDIRYaroslav Tykhiy2005-08-181-0/+5
| | | | | | | | | | | | | | | | | | is not defined, so that the module will get the compatibility options from the current kernel configuration if built with the latter, not with the world. [Some other modules seem in need of fixing WRT this, too.] Add more compatibility options found in GENERIC to the default opt_compat.h. While not all of them are used in the procfs code, we can't tell for sure if the system .h files don't need them either, so let's stay on the safe side. Submitted by: kensmith Reviewed by: ru Notes: svn path=/head/; revision=149234
* Don't break local style.Yaroslav Tykhiy2005-08-181-1/+2
| | | | Notes: svn path=/head/; revision=149231
* Fix stand-alone (or MODULES_WITH_WORLD=1) build ofYaroslav Tykhiy2005-08-111-1/+7
| | | | | | | | | | | | the procfs module by creating opt_compat.h with appropriate compatibility options: COMPAT_43 on all arch's and COMPAT_IA32 in addition on amd64. Pointy hat to: peter MFC after: 3 days Notes: svn path=/head/; revision=148960
* Slightly change the semantics of vnode labels for MAC: rather thanRobert Watson2002-10-261-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | "refreshing" the label on the vnode before use, just get the label right from inception. For single-label file systems, set the label in the generic VFS getnewvnode() code; for multi-label file systems, leave the labeling up to the file system. With UFS1/2, this means reading the extended attribute during vfs_vget() as the inode is pulled off disk, rather than hitting the extended attributes frequently during operations later, improving performance. This also corrects sematics for shared vnode locks, which were not previously present in the system. This chances the cache coherrency properties WRT out-of-band access to label data, but in an acceptable form. With UFS1, there is a small race condition during automatic extended attribute start -- this is not present with UFS2, and occurs because EAs aren't available at vnode inception. We'll introduce a work around for this shortly. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105988
* Introduce support for Mandatory Access Control and extensibleRobert Watson2002-08-011-0/+2
| | | | | | | | | | | | | | kernel access control. Modify procfs so that (when mounted multilabel) it exports process MAC labels as the vnode labels of procfs vnodes associated with processes. Approved by: des Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=101132
* Move the pseudofs, procfs and linprocfs modules out from the fs directory.Dag-Erling Smørgrav2002-02-041-0/+29
| | | | | | | | Keeping them there seemed like a good idea at the time, but it annoys bde and confuses people who do not understand how MODULES_OVERRIDE works. Notes: svn path=/head/; revision=90223
* Pseudofsize procfs(5).Dag-Erling Smørgrav2001-12-041-22/+0
| | | | Notes: svn path=/head/; revision=87321
* - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION fileRuslan Ermilov2001-05-231-1/+1
| | | | | | | | | | | | | | | | | | 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
* Use a consistent style and one much closer to the rest of /usr/srcDavid E. O'Brien2001-01-061-1/+2
| | | | Notes: svn path=/head/; revision=70711
* Add four missing source files.Dag-Erling Smørgrav2000-12-091-2/+12
| | | | Notes: svn path=/head/; revision=69797
* Use .include <bsd.kmod.mk> to get to ../../*/conf/kmod.mk instead ofPeter Wemm2000-05-271-1/+1
| | | | | | | encoding the relative path. Notes: svn path=/head/; revision=60966
* Pull in sys/conf/kmod.mk, rather than /usr/share/mk/bsd.kmod.mk.Peter Wemm2000-05-041-1/+1
| | | | | | | | | | This means that the kernel can be totally self contained now and is not dependent on the last buildworld to update /usr/share/mk. This might also make it easier to build 5.x kernels on 4.0 boxes etc, assuming gensetdefs and config(8) are updated. Notes: svn path=/head/; revision=59951
* Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't beenPeter Wemm1999-12-121-3/+1
| | | | | | | | | needed for ages, but keeps getting cut/pasted into new Makefiles. (Once apon a time it was used to activate mount arguments in <sys/mount.h>, but that was killed with extreme prejudice long ago) Notes: svn path=/head/; revision=54508
* Bring these more into line with other modules that have .h files generatedPeter Wemm1999-12-121-2/+3
| | | | | | | on the fly. Notes: svn path=/head/; revision=54502
* Removed special rules for building and cleaning device interface filesBruce Evans1999-11-281-4/+0
| | | | | | | | and empty options files. The rules are now generated automatically in bsd.kmod.mk. Cleaned up related things ($S and ${CLEANFILES}). Notes: svn path=/head/; revision=53846
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Add procfs_rlimit.c so the kernel actually compiles.Bill Fumerola1999-05-041-3/+4
| | | | | | | | | PR: kern/11497 Submitted by: Jos Backus <jos.backus@nl.origin-it.com> (misordered patch) Pointy Hat: phk, adrian Notes: svn path=/head/; revision=46453
* Sample initial set of kld-ified modules. Not all have been completelyPeter Wemm1998-10-161-4/+4
| | | | | | | | | | converted yet. These are more of a starting point. This is NOT connected to the parent Makefile. OK'ed by jkh (who is ever so patiently waiting) Notes: svn path=/head/; revision=40440
* A better solution to the rm_at_exit problem: Register the exit functionAlexander Langer1998-07-271-2/+2
| | | | | | | | | | | during first mount. Unregister the exit function at last unmount. Concept by: sef Reviewed by: sef Implemented by: alex Notes: svn path=/head/; revision=37877
* Override the default VFS LKM dispatch functions so that a moduleAlexander Langer1998-07-251-2/+2
| | | | | | | | unload function can be provided (this is necessary to unregister the at_exit handler). Notes: svn path=/head/; revision=37864
* Added opt_vmpage.h to SRCS so that it actually gets created.Bruce Evans1998-07-011-5/+5
| | | | Notes: svn path=/head/; revision=37323
* Leading whitespace in Makefile are TABS not spaces....Søren Schmidt1998-06-301-2/+2
| | | | Notes: svn path=/head/; revision=37298
* fix more of my breakage... :(John-Mark Gurney1998-06-301-1/+5
| | | | | | | create opt_vmpage.h Notes: svn path=/head/; revision=37293
* Back out opt_diagnostic.h changes.Eivind Eklund1998-02-061-6/+2
| | | | Notes: svn path=/head/; revision=33143
* Make the LKMs handle DIAGNOSTIC as a new-style option.Eivind Eklund1998-02-041-2/+6
| | | | Notes: svn path=/head/; revision=33105
* Revert $FreeBSD$ back to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22982
* 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
* Add new parts, kernel not booted in other caseAndrey A. Chernov1996-06-181-3/+3
| | | | Notes: svn path=/head/; revision=16483
* Attempt to fix the procfs LKM after making some of the procfsPeter Wemm1996-01-241-5/+3
| | | | | | | code shared with ptrace and "standard" in the config. Notes: svn path=/head/; revision=13613
* Build LKMs for all ``easy'' filesystems. (lfs can be done, but it's moreGarrett Wollman1994-09-211-0/+13
work; ditto NFS and it's even more work.) Notes: svn path=/head/; revision=2961