From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE0CDC47255 for ; Mon, 11 May 2020 16:29:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BFC51206D7 for ; Mon, 11 May 2020 16:29:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589214585; bh=zRDkDfVfjnpNgmAvhKkgOw02zl7haTcp+VFVx/goDc0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=l4Yajewmtqdu2m9JXItDNCzp4oi2eLGcm+yry4I8nZwRFZ4zy+I+M6RYPpXF0aeb3 +X22NnNlS3u5Py7/xZbEvf7Whsbk+jwc79/CZUJ/OfkQw9d4fLt0scRq7dETGm5o2B g7R9lI4USeMkm1MN1vKLgswMwELWSAVVJ1bYGxnc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730715AbgEKQ3p (ORCPT ); Mon, 11 May 2020 12:29:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:39792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729463AbgEKQ3p (ORCPT ); Mon, 11 May 2020 12:29:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 465072070B; Mon, 11 May 2020 16:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589214584; bh=zRDkDfVfjnpNgmAvhKkgOw02zl7haTcp+VFVx/goDc0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OICiURn93tXudidSvHjuXM4EZj2p+Hj1iInoHjEncr+1S0dZHAW2duMYG1fMFWgtm pyOKCO9ev9nqK7Fs++5WnsynW0eVfbLzVUb/mwc4lpEztPXxe74AoyeZoxgH/x3Dan CO6QalrKzn039HMXmnNBhuRaNsRmvR79AWbyJJw0= Date: Mon, 11 May 2020 18:21:13 +0200 From: Greg Kroah-Hartman To: Andrzej Pietrasiewicz Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, Dmitry Torokhov , Rob Herring , Jiri Slaby , kernel@collabora.com Subject: Re: [PATCH 6/6] tty/sysrq: Add configurable handler to execute a compound action Message-ID: <20200511162113.GC2221063@kroah.com> References: <20200511135918.8203-1-andrzej.p@collabora.com> <20200511135918.8203-7-andrzej.p@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200511135918.8203-7-andrzej.p@collabora.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Mon, May 11, 2020 at 03:59:18PM +0200, Andrzej Pietrasiewicz wrote: > Some userland might want to execute e.g. 'w' (show blocked tasks), followed > by 's' (sync), followed by 1000 ms delay and then followed by 'c' (crash) > upon a single magic SysRq. Or one might want to execute the famous "Raising > Elephants Is So Utterly Boring" action. This patch adds a configurable > handler, triggered with 'C', for this exact purpose. The user specifies the > composition of the compound action using syntax similar to getopt, where > each letter corresponds to an individual action and a colon followed by a > number corresponds to a delay of that many milliseconds, e.g.: > > ws:1000c > > or > > r:100eis:1000ub Cute, but why? Who needs/wants this type of thing? And again, no documentation :( greg k-h