summaryrefslogtreecommitdiffstats
path: root/sys/miscfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* replace the machine dependant bytes-to-clicks macro by the MI ptoa()martin2007-09-011-2/+2
| | | | | | | | version for i386 more architectures and ctob() replacement is being worked on prodded by and ok miod
* declare "pid" as pid_t instead of long, and remove unneeded cast to pid_tjasper2007-06-222-5/+5
| | | | ok pedro@ thib@
* ansify/de-register.jasper2007-06-1812-266/+124
| | | | no binary change
* daddr_t -> daddr64_t for specfs. convert some variablesthib2007-06-022-12/+12
| | | | | | | to proper types along the way (ints), fixes a subtle bug wich otto@ pointed me at. ok deraadt@
* pedro ok'd this ~3500 line diff which removes the vop argumentderaadt2007-06-015-323/+64
| | | | | "ap = v" comments in under 8 seconds, so it must be ok. and it compiles too.
* Updated disklabel format to support larger disks and partitions. Weotto2007-05-291-9/+15
| | | | | | | | | | | free room in struct partition by packing fragment size and fragments/block more tighlty and use the resulting space to make offset and size 48 bits. For the disk part we use spare fields in struct disklabel. Kernel converts in-mem copy of the on-disk label if needed, disklabel(8) writes new version. We are careful to only change fields not used by bootloaders. Conception of basic scheme by deraadt. ok deraadt@ krw@
* remove duplicate check for uio_resid == 0 inthib2007-04-101-3/+1
| | | | | | spec_read(); ok pedro@
* ansify and deregister, no binary change, okay mickey@ bluhm@pedro2007-04-081-31/+14
|
* Remove the v_interlock simplelock from the vnode structure.thib2007-03-211-10/+2
| | | | | | | | | Zap all calls to simple_lock/unlock() on it (those calls are #defined away though). Remove the LK_INTERLOCK from the calls to vn_lock() and cleanup the filesystems wich implement VOP_LOCK(). (by remvoing the v_interlock from there calls to lockmgr()). ok pedro@, art@, tedu@
* Since p_flag is often manipulated in interrupts and without biglockart2007-03-151-4/+4
| | | | | | | | | | | | it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
* Retire VOP_LEASE(); It was a bit for NQNFS and hasthib2007-01-164-8/+4
| | | | | | | | | effectively been a no-op for quite some time now, without promise for future usage. ok pedro@ Testing by krw@ (earlier diff) and Johan Mson Lindman (tybollt@solace.miun.se)
* Allow reads of /proc/meminfo to be correctly terminated, okay thib@pedro2007-01-011-2/+2
|
* Correct the calculation of block address for specfs block i/o onkrw2006-11-291-13/+7
| | | | | | | | devices with sectorsizes other than 512. e.g. cd's. Fixes PR #5235 from Paul Stoeber with a slightly tweaked diff. NetBSD did the same with their r1.59 in 2001, closing their PR#3261 and PR#14026. tweak suggestions and ok pedro@
* Kernel stack can be swapped. This means that stuff that's on the stackmiod2006-11-293-12/+5
| | | | | | | | | | should never be referenced outside the context of the process to which this stack belongs unless we do the PHOLD/PRELE dance. Loads of code doesn't follow the rules here. Instead of trying to track down all offenders and fix this hairy situation, it makes much more sense to not swap kernel stacks. From art@, tested by many some time ago.
* Use daddr64_t for logical blocks, okay krw@ thib@ mickey@pedro2006-10-161-2/+2
|
* Allow building procfs on systems that don't #define PT_STEP (such as sparc64).tsi2006-08-281-1/+5
| | | | ok pedro@, miod@
* zap some unused variables.thib2006-07-121-10/+1
| | | | | | | the only use was in an #if notyet chunk since '97. ok miod@ 'no objections' pedro@
* Add some comments in the return endpointspedro2006-06-021-5/+5
|
* Add a clonable devices implementation. Hacked along with thib@, inputpedro2006-06-023-2/+117
| | | | from krw@ and toby@, subliminal prodding from dlg@, okay deraadt@.
* Use more queue macros rather than doing it by hand; ok otto@ krw@miod2006-03-053-9/+10
|
* Remove historical yet completely undocumented ``is this a tape'' ioctl formiod2006-02-201-3/+1
| | | | | | block devices where ioctl request is zero and data is B_TAPE, which no sane userland program uses those days. General disgust and ok deraadt@ millert@ weingart@
* Split the d_type field of cdevsw entries into d_type and d_flags for clarity.miod2005-12-311-2/+2
| | | | Discussed with and ok deraadt@ millert@
* Fix wrong optimization in spec_write() that goes: if we are about to dopedro2005-12-291-5/+2
| | | | | | | | a write that will globber the whole buffer, and it's not in cache, do not bother reading it in. That's wrong, since the user may be trying to write beyond the disk extent, in which case we definitely want to return an error, rather than returning saying the write was okay, and failing later on at an 'uncatched' biodone(). Okay tedu@.
* Replace procfs_domem() with a similar interface, process_domem(), which livesmiod2005-12-116-143/+10
| | | | | | | out of procfs and gets a ptrace request PT_{READ,WRITE}_{I,D} as argument; also procfs_checkioperm() becomes process_checkioperm(). From art@ some time ago; ok kettenis@ pedro@
* Remove fdescfspedro2005-12-063-1292/+0
|
* Remove kernfs, okay deraadt@.pedro2005-11-243-1300/+0
|
* Remove unnecessary lockmgr() archaism that was costing too much in termspedro2005-11-193-10/+10
| | | | | | of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
* Add an extra flags argument to uvm_io(), to specify whether we want to fixmiod2005-11-042-6/+7
| | | | | | | | | the protection of the memory mapping we're doing I/O on, or if we want to leave them as they are. This should only be necessary for breakpoint insertion in code, so we'll only use it for ptrace requests. Initially from art@ after discussion with kettenis@ millert@ and I, tested by many.
* Protect the run queues with SCHED_LOCK, not just spl (ot nothing at all inart2005-05-311-1/+8
| | | | | | | one case fixed here). miod@ "appears to be harmless" markus@ ok
* sched work by niklas and art backed out; causes panicsderaadt2005-05-291-8/+1
|
* bye bye, rest in attic ad infinitum, amenpedro2005-05-2616-7419/+0
|
* This patch is mortly art's work and was done *a year* ago. Art wants to thankniklas2005-05-251-1/+8
| | | | | | | | | | | | | | | | everyone for the prompt review and ok of this work ;-) Yeah, that includes me too, or maybe especially me. I am sorry. Change the sched_lock to a mutex. This fixes, among other things, the infamous "telnet localhost &" problem. The real bug in that case was that the sched_lock which is by design a non-recursive lock, was recursively acquired, and not enough releases made us hold the lock in the idle loop, blocking scheduling on the other processors. Some of the other processors would hold the biglock though, which made it impossible for cpu 0 to enter the kernel... A nice deadlock. Let me just say debugging this for days just to realize that it was all fixed in an old diff noone ever ok'd was somewhat of an anti-climax. This diff also changes splsched to be correct for all our architectures.
* better handling of disappearing devices, in spec_close(), don't try topedro2005-05-241-4/+8
| | | | double-lock the vnode if we're coming from vclean()
* careful strlcpy and snprintf return handling; ok pedro beckderaadt2005-04-212-6/+15
|
* Remove regs and fpregs pseudo-files from procfs.kettenis2005-04-164-222/+2
| | | | ok deraadt@, miod@
* calling pfind() and checking that the process doesn't exist is notpedro2005-04-011-4/+5
| | | | | | enough to allow us to call vgone() from procfs_inactive(). to avoid a deadlock, check for VXLOCK as well, in case we were called from vclean(). problem report from Sho Fujita, okay tedu@.
* Don't use seltrue() in poll ops since it requires v_rdev dereferencinggrange2004-11-291-2/+3
| | | | | | which is not possible here. Problem found and fixed by form@. ok millert@ fgsch@ pedro@
* Better and simpler check for negative offset; from Christer Obergmillert2004-11-181-3/+3
|
* typo, from Joris Vinkpedro2004-10-261-3/+3
|
* use queue.h provided macro when traversing the process list, no changespedro2004-10-191-3/+3
| | | | in generated object file. from Joris Vink.
* Make sure we don't call kernfs_xread() with a negative offset.millert2004-09-011-3/+7
| | | | Problem found by Christer Oberg. OK henning@, deraadt@
* remove p arg from fdplocktedu2004-07-221-2/+2
|
* explicitly initialize a variable that is used to control the vnodepedro2004-07-111-2/+2
| | | | | | | flushing loop, otherwise we could hard-lock the machine when unmounting an union filesystem ok tedu@
* make sure we pass vop_whiteout() a locked vnode, ok tedu@pedro2004-07-101-6/+11
|
* This moves access to wall and uptime variables in MI code,tholo2004-06-243-10/+6
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* fix ncpu vs ncpus glitch, spotted by Sven Dehmlowderaadt2004-06-121-3/+3
|
* portal_connect needs splsoftnet.tedu2004-06-061-4/+5
| | | | | using CMSG_ALIGN was wrong, userland fires in data not so aligned. if fd_getfile returns NULL, don't try to close the fd, since it's not there.
* use M_MISCFSMNT to allocate nullfs memory, ok tedu@pedro2004-06-011-4/+4
|
* fix for: !(flags && FORCECLOSE)mpech2004-05-281-2/+2
| | | | hackers@ ok
* typospedro2004-05-261-10/+10
|