freebsd-dev/sys/rpc
Konstantin Belousov 6ddcc23386 Add facility to stop all userspace processes. The supposed use of the
feature is to quisce the system before suspend.

Stop is implemented by reusing the thread_single(9) with the special
mode SINGLE_ALLPROC.  SINGLE_ALLPROC differs from the existing
single-threading modes by allowing (requiring) caller to operate on
other process.  Interruptible sleeps for !TDF_SBDRY threads are
suspended like SIGSTOP does it, instead of aborting the sleep, like
SINGLE_NO_EXIT, to avoid spurious EINTRs on resume.

Provide debugging sysctl debug.stop_all_proc, which causes total stop
and suspends syncer, while waiting for variable reset for resume.  It
is used for debugging; should be removed after the real use of the
interface is added.

In collaboration with:	pho
Discussed with:	avg
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2014-12-13 16:18:29 +00:00
..
rpcsec_gss Add support for host-based (Kerberos 5 service principal) initiator 2013-07-09 01:05:28 +00:00
auth_none.c Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
auth_unix.c Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
auth.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
authunix_prot.c Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
clnt_bck.c Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
clnt_dg.c Remove some unused static const strings under sys/rpc, which have never 2013-12-24 20:55:22 +00:00
clnt_rc.c Revert 195703 and 195821 as this special stop handling in NFS is now 2013-03-13 21:06:03 +00:00
clnt_stat.h
clnt_vc.c In preparation of merging projects/sendfile, transform bare access to 2014-11-12 09:57:15 +00:00
clnt.h Replace Sun Industry Standards Source License for Sun RPC code with a 2013-11-25 19:08:38 +00:00
getnetconfig.c
krpc.h Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
netconfig.h
nettype.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
pmap_prot.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
replay.c
replay.h
rpc_callmsg.c Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
rpc_com.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
rpc_generic.c Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
rpc_msg.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
rpc_prot.c Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
rpc.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
rpcb_clnt.c Move a static const variable to the #if 0 part where it is only used. 2013-12-24 20:57:26 +00:00
rpcb_clnt.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:07:44 +00:00
rpcb_prot.c Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
rpcb_prot.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
rpcm_subs.h Use m_get(), m_gethdr() and m_getcl() instead of historic macros. 2013-03-12 12:17:19 +00:00
rpcsec_gss.h Add support for host-based (Kerberos 5 service principal) initiator 2013-07-09 01:05:28 +00:00
svc_auth_unix.c Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
svc_auth.c Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
svc_auth.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
svc_dg.c Rework NFS Duplicate Request Cache cleanup logic. 2014-01-03 15:09:59 +00:00
svc_generic.c Split RPC pool threads into number of smaller semi-isolated groups. 2014-06-08 11:19:32 +00:00
svc_vc.c In preparation of merging projects/sendfile, transform bare access to 2014-11-12 09:57:15 +00:00
svc.c Add facility to stop all userspace processes. The supposed use of the 2014-12-13 16:18:29 +00:00
svc.h Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
types.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00
xdr.h Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, 2013-11-25 19:04:36 +00:00