summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bitch more loudly when someone botches changes to kinfo_procmckusick2001-03-071-3/+12
| | | | | | in the hopes that they will actually *read* the comment above it and *follow* the instructions so as to cause all the rest of us less a lot less grief.
* Apply i386 fix in 1.32 for the alpha too.mckusick2001-03-071-1/+1
|
* If SIGINFO is received during the transfer, print a status line similardes2001-03-071-5/+29
| | | | | | | | to the summary shown at the end of the transfer. Some days, I really hate Unix... Suggested by: cracauer
* Unrevert the pmap_map() changes. They weren't broken on x86.jhb2001-03-076-70/+73
| | | | Sense beaten into me by: peter
* - Don't hold the proc lock across VREF and the fd* functions to avoid lockjhb2001-03-071-4/+21
| | | | | | order reversals. - Add some preliminary locking in the !RF_PROC case. - Protect p_estcpu with sched_lock.
* Don't remember an EINTR, since the caller may want to restart the call.des2001-03-071-2/+4
|
* Spelling and capitalization fixes.gsutter2001-03-072-14/+14
| | | | Reviewed by: gshapiro, jake, jhb, rwatson (all within 30 seconds)
* Support lower-case versions of the proxy environment variables.des2001-03-073-3/+13
| | | | PR: bin/25494
* - Release Giant a bit earlier on syscall exit.jhb2001-03-075-87/+59
| | | | | | - Don't try to grab Giant before postsig() in userret() as it is no longer needed. - Don't grab Giant before psignal() in ast() but get the proc lock instead.
* - Lock the process while sending it a signal.jhb2001-03-071-2/+13
| | | | | - Attempt to define empty PROC_LOCK/UNLOCK when needed to help keep this driver portable.
* Grab the process lock while calling psignal and before calling psignal.jhb2001-03-0736-45/+173
|
* Protect SIGDELSET of p_siglist with the proc lock.jhb2001-03-071-1/+4
|
* Proc locking including using proc lock in place of proctree wherejhb2001-03-071-10/+27
| | | | appropriate and locking processes while we signal them.
* Proc locking.jhb2001-03-071-3/+9
|
* Use the proc lock to protect access to p_sigacts->ps_sigintr.jhb2001-03-071-4/+4
|
* Fix a formatting bug (MFC candidate)des2001-03-071-1/+1
|
* Just hold the proc lock while getting the parent's PID rather than ajhb2001-03-072-20/+10
| | | | proctree lock.
* Use the proc lock to protect p_pptr when waking up our parent in cpu_exit()jhb2001-03-076-7/+12
| | | | and remove the mpfixme() message that is now fixed.
* Just use proc lock to protect reading of p_pptr rather than a proctreejhb2001-03-071-21/+17
| | | | lock.
* Proc locking identical to that of linprocfs' vnops except that we hold thejhb2001-03-072-36/+118
| | | | proc lock while calling psignal.
* Protect read to p_pptr with proc lock rather than proctree lock.jhb2001-03-072-4/+4
|
* Proc locking. Lock around psignal() and also ensure both an exclusivejhb2001-03-072-40/+68
| | | | | | proctree lock and the process lock are held when updating p_pptr and p_oppid. When we are just reaading p_pptr we only need the proc lock and not a proctree lock as well.
* - Proc locking.jhb2001-03-071-17/+29
| | | | - Remove some unneeded spl()'s.
* Lock the process while sending it SIGARLM and updating p_realtimer.jhb2001-03-071-0/+4
|
* - Proc locking.jhb2001-03-071-25/+7
| | | | - Remove unneeded spl()'s.
* - Proc locking. Most of signal handling is now MP safe and doesn't requirejhb2001-03-071-70/+162
| | | | | | | | | | Giant. The only exception is the CANSIGNAL() macro. Unlocking the proc lock around sendsig() in trapsignal() is also questionable. Note that the functions sigexit(), psignal(), and issignal() must be called with the proc lock of the process in question held. postsig() and trapsignal() should not be called with the proc lock held, but they also do not require Giant anymore either. - Remove spl's that are now no longer needed as they are fully replaced.
* Lock initproc when we send SIGINT to init during shutdown.jhb2001-03-071-0/+2
|
* - Add an extra check in priority_propagation() for UP systems to ensure wejhb2001-03-073-3/+27
| | | | | | | | don't end up back at ourselves which would indicate deadlock. - Add the proc lock to the witness dup_list as we may hold more than one process lock at a time. - Don't assert a mutex is owned in _mtx_unlock_sleep() as that is too late. We do the checks in the macros instead.
* - Use _PHOLD and move it before a PROC_UNLOCK to reduce the number ofjhb2001-03-071-7/+18
| | | | | | | | | | mutex operations in kthread_create(). - Lock a kthread's proc before changing its parent via proc_reparent(). - Test P_KTHREAD not P_SYSTEM in kthread_suspend() and kthread_resume(). P_SYSTEM just means that the process shouldn't be swapped and is used for vinum's daemon for example. - Lock all the signal state used for suspending and resuming kthreads with the proc lock.
* - Lock the forklist with an sx lock.jhb2001-03-071-14/+57
| | | | | | | | | | - Add proc locking to fork1(). Always lock the child procoess (new process) first when both processes need to be locked at the same time. - Remove unneeded spl()'s as the data they protected is now locked. - Ensure that the proctree is exclusively locked and the new process is locked when setting up the parent process pointer. - Lock the check for P_KTHREAD in p_flag in fork_exit().
* Check to see if p_fd is NULL before derferencing it in checkdirs(). It'sjhb2001-03-072-0/+4
| | | | | | possible for us to see a process in the early stages of fork before p_fd has been initialized. Ideally, we wouldn't stick a process on the allproc list until it was fully created however.
* - Call proc_reparent() when handing a process off to init in exit ratherjhb2001-03-071-18/+23
| | | | | | | | | | than dinking around in the process lists explicitly. - Hold both the proctree lock and proc lock of the child process when reparenting a process via proc_reparent. - Lock processes while sending them signals. - Miscellaenous proc locking. - proc_reparent() now asserts that the child is locked in addition to an exclusive proctree lock.
* - Hold both an exclusive proctree lock and the proc lock when reparentingjhb2001-03-071-10/+11
| | | | | a traced process during exit. - Lock the parent process while sending it SIGCHLD.
* Protect p_flag with the proc lock.jhb2001-03-076-6/+36
|
* - Include <sys/systm.h> for KASSERT().jhb2001-03-071-72/+17
| | | | | | | | | | | | | | - Move the _mtx_assert() prototype up to the top of the file with the rest of the function prototypes. - Define all the mtx_foo() macros in terms of mtx_foo_flags(). - Add a KASSERT() to check for invalid options in mtx_lock_flags(). - Move the mtx_assert() to ensure a mutex is owned before releasing it in front of WITNESS_EXIT() in all the mtx_unlock_* macros. - Change the MPASS* macros to be on #ifdef INVARIANTS, not just #ifdef MUTEX_DEBUG since most of them check to see that the mutex functions are called properly. Define MPASS4() in terms of KASSERT() to do this. - Define MPASS{,[23]} in terms of MPASS4() to simplify things and avoid code duplication.
* - In the locking key for struct proc, generalize the '+' symbol to meanjhb2001-03-071-19/+27
| | | | | | | | | | | | | | | | | | that write access to a member requires both locks and read access only requires one of the given locks. Convert instances of '(c+)' to '(c + k)' as a result. - Change p_pptr from (e) to (c + e). - Change p_oppid from (c) to (c + e). - Change p_args from (b?) to (c + k). - Move the actual work of STOPEVENT, PHOLD, and PRELE to _STOPEVENT, _PHOLD, and _PRELE. The new macros do not acquire the proc lock and simply assert that it is held. The non _ prefixed macros acquire the proc lock and then call the _ prefixed macros. - Add a PROC_LOCK_NOSWITCH() macro to be used when releasing the proc lock while already holding a spin lock (usually sched_lock). - Add a PROC_LOCK_ASSERT() macro to be used to make assertions about the proc lock. It takes the usual mtx_assert() macro arguments as its second argument.
* Back out the pmap_map() change for now, it isn't completely stable on thejhb2001-03-076-73/+70
| | | | i386.
* add new PC-Card entry, IO Data WN-B11/PCMsanpei2001-03-073-0/+8
| | | | | Submitted by: [FreeBSD-users-jp 59373] "Masatake E. Hori" <eddie@luft.geo.tsukuba.ac.jp>
* In order to avoid recursing on the backing mutex for sx locks in thejhb2001-03-062-4/+12
| | | | | | | INVARIANTS case, define the actual KASSERT() in _SX_ASSERT_[SX]LOCKED macros that are used in the sx code itself and convert the SX_ASSERT_[SX]LOCKED macros to simple wrappers that grab the mutex for the duration of the check.
* Get the arguments to the KASSERT() printf() in SX_ASSERT_XLOCKED() injhb2001-03-061-1/+1
| | | | the proper order.
* Sawfish is invoked by the gnome stuff automatically if it exists -jkh2001-03-062-2/+2
| | | | | | we don't need to start it explicitly. Noted by: "Jose M. Alcaide" <jose@we.lc.ehu.es>
* Split out the ata probes in seperate files for each bus type.sos2001-03-067-825/+927
|
* Indent the comment about the Alpha palette evilness correctly.jhb2001-03-061-5/+5
| | | | Noticed by: bde
* Silence the sizeof warning from struct kinfo_procphk2001-03-061-1/+1
|
* Make the KASSERTs report the correct function names.des2001-03-061-18/+11
| | | | | Fix two off-by-one errors that would sometimes cause the final length of the sbuf to include the trailing zero.
* o Introduce filesystem-independent POSIX.1e ACL utility routines torwatson2001-03-065-19/+1331
| | | | | | | | | | | | | | | | | | | | | | | | support implementations of ACLs in file systems. Introduce the following new functions: vaccess_acl_posix1e() vaccess() that accepts an ACL acl_posix1e_mode_to_perm() Convert mode bits to ACL rights acl_posix1e_mode_to_entry() Build ACL entry from mode/uid/gid acl_posix1e_perms_to_mode() Generate file mode from ACL acl_posix1e_check() Syntax verification for ACL These functions allow a file system to rely on central ACL evaluation and syntax checking, as well as providing useful utilities to allow ACL-based file systems to generate mode/owner/etc information to return via VOP_GETATTR(), and to support file systems that split their ACL information over their existing inode storage (mode, uid, gid) and extended ACL into extended attributes (additional users, groups, ACL mask). o Add prototypes for exported functions to sys/acl.h, sys/vnode.h Reviewed by: trustedbsd-discuss, freebsd-arch Obtained from: TrustedBSD Project
* A quick and dirty port of libstand to ia64.dfr2001-03-063-0/+161
|
* Use relative paths to find byte_swap_*.S to make it easier to use thesedfr2001-03-064-4/+4
| | | | from libstand.
* Make this compile. Still need to write/borrow a working setjmp.dfr2001-03-061-0/+1
|
* Use ieee floats on ia64.dfr2001-03-061-1/+1
|
OpenPOWER on IntegriCloud