Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2160625ybz; Thu, 23 Apr 2020 12:41:06 -0700 (PDT) X-Google-Smtp-Source: APiQypLtl1WRKwkBio0L2X9vbo8ve2C2nbA4cOAoKVyuwLN2G9+Eldbx5JOgi+AxosizRKXLVqGC X-Received: by 2002:a17:906:add7:: with SMTP id lb23mr4347511ejb.6.1587670866707; Thu, 23 Apr 2020 12:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587670866; cv=none; d=google.com; s=arc-20160816; b=ZlXI4wegs5UpM+c3o/LeB5W3FLBSUDClCoSGMRXLGUSn6fDSYPMT3S7jUuBgjjyaas dyur37cuOKQfdo+jTmOJS4NoJdX12pxLRJzq2ntcFiPNz/nFM153jV8ZVW+AZExNj1kG MRbuRHjfpdEUVJLy4PXruIpYRD2srNCOZNO5sMFpJmctJs52LiAeDItex01pcQ6J6jgQ dqPcK2BgnLHr+kzGdBhVmo83jpHjA09Ve6e5thgWOliSteN8Zigjou+psy0j2xpomDYi FfpSglcGhBYfbV99wbWIOtEDgi8/pMAH5QrlYq7DQScSFxTGSZTbmj6pFImfGEmhfW8Q 1xPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=8xjWJv0kzb1rHGmAFP7gYqK7URDbg1qapiWKZnEK2Pg=; b=H0E+6Apltq7eAbJWAf1xJ6b3lg4dSHR2x1qHYIdSRmGn1Vm9eweHNudY5bBLBPN7ld LTorx/Ug/iR2N+/DumAQplJgAyLJ6bJKic3Ys0yZ7na/d5xil/MYEexqHWTB4TXThn9q vmYdZ2PsB7gA7IeFh0Opf4lvgDLoDZZ0gRH9TesFxJb40TL1ju/NSxFQp3mVPjVQEy/y +u+vpvmplOlPe+ggVRHIgRpCl2X/UgJsqQp33dNLG27bJ4MNwTBbfAxbqUGIXL7JjBhR bd9ToOTgTueeYVzytgdteNZwMJOAFQJwv6lizRnzyUo4b0gN75ZIwhKTdsrvQrLxZ+e3 0fwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y89si1681868edy.357.2020.04.23.12.40.43; Thu, 23 Apr 2020 12:41:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728159AbgDWTQ3 (ORCPT + 99 others); Thu, 23 Apr 2020 15:16:29 -0400 Received: from 8.mo177.mail-out.ovh.net ([46.105.61.98]:53460 "EHLO 8.mo177.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726068AbgDWTQ3 (ORCPT ); Thu, 23 Apr 2020 15:16:29 -0400 X-Greylist: delayed 1809 seconds by postgrey-1.27 at vger.kernel.org; Thu, 23 Apr 2020 15:16:28 EDT Received: from player796.ha.ovh.net (unknown [10.110.171.173]) by mo177.mail-out.ovh.net (Postfix) with ESMTP id BE17C12D3A6 for ; Thu, 23 Apr 2020 20:37:12 +0200 (CEST) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player796.ha.ovh.net (Postfix) with ESMTPSA id DBDDC11A47C5D; Thu, 23 Apr 2020 18:37:06 +0000 (UTC) From: Stephen Kitt To: Jonathan Corbet , Mauro Carvalho Chehab , linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH 1/3] docs: sysctl/kernel: document cad_pid Date: Thu, 23 Apr 2020 20:36:49 +0200 Message-Id: <20200423183651.15365-1-steve@sk2.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 16165670866134453637 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrgeelgdeljecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejleeirdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Based on the implementation in kernel/sysctl.c (the proc_do_cad_pid() function), kernel/reboot.c, and include/linux/sched/signal.h. Signed-off-by: Stephen Kitt --- Documentation/admin-guide/sysctl/kernel.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index 55b24eada13c..82bfd5892663 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -116,6 +116,16 @@ run. The statistics can be seen using ``bpftool``. = =================================== +cad_pid +======= + +This is the pid which will be signalled on reboot (notably, by +Ctrl-Alt-Delete). Writing a value to this file which doesn't +correspond to a running process will result in ``-ESRCH``. + +See also `ctrl-alt-del`_. + + cap_last_cap ============ base-commit: 7b9121040d83eb9e332f7dbc140eca17643d3586 -- 2.20.1