summaryrefslogtreecommitdiffstats
path: root/sys/fs/pseudofs/pseudofs.c
Commit message (Collapse)AuthorAgeFilesLines
* Constify, and add an API function to find a named node in a directory.des2003-12-071-3/+17
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-5/+5
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-5/+5
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Remove all use of vnode->v_tag, replacing with appropriate substitutes.njl2002-09-141-1/+4
| | | | | | | | | | | | v_tag is now const char * and should only be used for debugging. Additionally: 1. All users of VT_NTS now check vfsconf->vf_type VFCF_NETWORK 2. The user of VT_PROCFS now checks for the new flag VV_PROCDEP, which is propagated by pseudofs to all child vnodes if the fs sets PFS_PROCDEP. Suggested by: phk Reviewed by: bde, rwatson (earlier version)
* Gratuitous whitespace cleanup.des2002-06-061-17/+17
|
* Convert the pseudofs framework to nmount (thus procfs and linprocfs).mux2002-05-021-2/+2
| | | | Reviewed by: des (some time ago), phk
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-1/+1
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-8/+8
| | | | also don't use ANSI string concatenation.
* Add support for a last-close handler.des2001-11-271-1/+1
| | | | | Revert the module version bumps; they're quite pointless as long as the only pseudofs consumer is linprocfs, which is in the tree.
* Reduce the number of #include dependencies by declaring some of the structsdes2001-11-031-0/+4
| | | | used in pseudofs.h as opaque structs.
* Argh! I updated the version number in the MODULE_DEPEND() thingamagook butdes2001-10-191-1/+1
| | | | not in the actual MODULE_VERSION(). Pass me the pointy hat.
* Switch to dynamic rather than static initialization.des2001-10-191-1/+216
| | | | | This makes it possible (in theory) for nodes to be added and / or removed from pseudofs filesystems at runtime.
* Add missing includes of sys/lock.h.jhb2001-10-111-0/+1
|
* Only print "XXX (un)registered" message if bootverbose.des2001-10-021-2/+4
|
* Pseudofs take 2:des2001-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | - Remove hardcoded uid, gid, mode from struct pfs_node; make pfs_getattr() smart enough to get it right most of the time, and allow for callbacks to handle the remaining cases. Rework the definition macros to match. - Add lots of (conditional) debugging output. - Fix a long-standing bug inherited from procfs: don't pretend to be a read-only file system. Instead, return EOPNOTSUPP for operations we truly can't support and allow others to fail silently. In particular, pfs_lookup() now treats CREATE as LOOKUP. This may need more work. - In pfs_lookup(), if the parent node is process-dependent, check that the process in question still exists. - Implement pfs_open() - its only current function is to check that the process opening the file can see the process it belongs to. - Finish adding support for writeable nodes. - Bump module version number. - Introduce lots of new bugs.
* KSE Milestone 2julian2001-09-121-3/+3
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Add support for process-dependent directories. This means that save fordes2001-06-101-1/+1
| | | | the lack of a man page, pseudofs is mostly complete now.
* Add missing #include of <sys/mutex.h>.des2001-06-101-0/+1
|
* Let pseudofs into the warmth of the FreeBSD CVS repo.des2001-04-071-0/+172
It's not finished yet (I still have to find a way to implement process- dependent nodes without consuming too much memory, and the permission system needs tightening up), but it's becoming hard to work on without a repo (I've accidentally almost nuked it once already), and it works (except for the lack of process-dependent nodes, that is). I was supposed to commit this a week ago, but timed out waiting for jkh to reply to some questions I had. Pass him a spoonful of bad karma :)
OpenPOWER on IntegriCloud