summaryrefslogtreecommitdiffstats
path: root/sys/modules/procfs
Commit message (Collapse)AuthorAgeFilesLines
* MFtbemd:imp2010-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...
* Provide groundwork for 32-bit binary compatibility on non-x86 platforms,nwhitehorn2010-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
* Add per-process osrel node to the procfs, to allow read and set p_osrelkib2009-09-231-0/+1
| | | | | | | value for the process. Approved by: des (procfs maintainer) MFC after: 3 weeks
* Fix our ioctl(2) implementation when the argument is "int". Newru2006-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
* Define the target for opt_compat.h only if KERNBUILDDIRyar2005-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
* Don't break local style.yar2005-08-181-1/+2
|
* Fix stand-alone (or MODULES_WITH_WORLD=1) build ofyar2005-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
* Slightly change the semantics of vnode labels for MAC: rather thanrwatson2002-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
* Introduce support for Mandatory Access Control and extensiblerwatson2002-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
* Move the pseudofs, procfs and linprocfs modules out from the fs directory.des2002-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.
* Pseudofsize procfs(5).des2001-12-041-22/+0
|
* - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION fileru2001-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.
* Use a consistent style and one much closer to the rest of /usr/srcobrien2001-01-061-1/+2
|
* Add four missing source files.des2000-12-091-2/+12
|
* Use .include <bsd.kmod.mk> to get to ../../*/conf/kmod.mk instead ofpeter2000-05-271-1/+1
| | | | encoding the relative path.
* Pull in sys/conf/kmod.mk, rather than /usr/share/mk/bsd.kmod.mk.peter2000-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.
* Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't beenpeter1999-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)
* Bring these more into line with other modules that have .h files generatedpeter1999-12-121-2/+3
| | | | on the fly.
* Removed special rules for building and cleaning device interface filesbde1999-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}).
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add procfs_rlimit.c so the kernel actually compiles.billf1999-05-041-3/+4
| | | | | | PR: kern/11497 Submitted by: Jos Backus <jos.backus@nl.origin-it.com> (misordered patch) Pointy Hat: phk, adrian
* Sample initial set of kld-ified modules. Not all have been completelypeter1998-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)
* A better solution to the rm_at_exit problem: Register the exit functionalex1998-07-271-2/+2
| | | | | | | | during first mount. Unregister the exit function at last unmount. Concept by: sef Reviewed by: sef Implemented by: alex
* Override the default VFS LKM dispatch functions so that a modulealex1998-07-251-2/+2
| | | | | unload function can be provided (this is necessary to unregister the at_exit handler).
* Added opt_vmpage.h to SRCS so that it actually gets created.bde1998-07-011-5/+5
|
* Leading whitespace in Makefile are TABS not spaces....sos1998-06-301-2/+2
|
* fix more of my breakage... :(jmg1998-06-301-1/+5
| | | | create opt_vmpage.h
* Back out opt_diagnostic.h changes.eivind1998-02-061-6/+2
|
* Make the LKMs handle DIAGNOSTIC as a new-style option.eivind1998-02-041-2/+6
|
* Revert $FreeBSD$ back to $Id$peter1997-02-221-1/+1
|
* 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.
* Add new parts, kernel not booted in other caseache1996-06-181-3/+3
|
* Attempt to fix the procfs LKM after making some of the procfspeter1996-01-241-5/+3
| | | | code shared with ptrace and "standard" in the config.
* Build LKMs for all ``easy'' filesystems. (lfs can be done, but it's morewollman1994-09-211-0/+13
work; ditto NFS and it's even more work.)
OpenPOWER on IntegriCloud