From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751795AbdFTH3L (ORCPT ); Tue, 20 Jun 2017 03:29:11 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:38128 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751144AbdFTH3J (ORCPT ); Tue, 20 Jun 2017 03:29:09 -0400 Date: Tue, 20 Jun 2017 09:29:06 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Darren Hart Cc: Andy Lutomirski , Greg Kroah-Hartman , Christoph Hellwig , Linus Torvalds , Mario Limonciello , Andy Shevchenko , Rafael Wysocki , LKML , platform-driver-x86@vger.kernel.org Subject: Re: WMI and Kernel:User interface Message-ID: <20170620072906.GI32387@pali> References: <20170613012435.GB27850@fury> <20170613070535.GA13252@infradead.org> <20170613153857.GC27850@fury> <20170613155000.GA24483@kroah.com> <20170613162242.GF27850@fury> <20170613165247.GA32546@kroah.com> <20170613170719.GK27850@fury> <20170614043853.GE10146@kroah.com> <20170620033725.GC16249@fury> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170620033725.GC16249@fury> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 19 June 2017 20:37:25 Darren Hart wrote: > dell-wmi: > Type and code, where type may be, for example, "sequence" and then each byte of > buffen length is processed as a key. It is more complicated. Buffer can contain more sequences (each has own length) and each sequence can contain different hotkey + additional info. So I doubt it would be possible to describe in context-free grammar specification of even buffer... And something more complicated (as L0 or L1) is not a good idea to parse in kernel. -- Pali Rohár pali.rohar@gmail.com