Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751587AbdIMMAo (ORCPT ); Wed, 13 Sep 2017 08:00:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:60748 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750949AbdIMMAj (ORCPT ); Wed, 13 Sep 2017 08:00:39 -0400 Date: Wed, 13 Sep 2017 14:00:37 +0200 (CEST) From: Miroslav Benes To: Joe Lawrence cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Poimboeuf , Jessica Yu , Jiri Kosina , Petr Mladek Subject: Re: [PATCH v6] livepatch: introduce shadow variable API In-Reply-To: <1504211861-19899-2-git-send-email-joe.lawrence@redhat.com> Message-ID: References: <1504211861-19899-1-git-send-email-joe.lawrence@redhat.com> <1504211861-19899-2-git-send-email-joe.lawrence@redhat.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 828 Lines: 29 On Thu, 31 Aug 2017, Joe Lawrence wrote: > Add exported API for livepatch modules: > > klp_shadow_get() > klp_shadow_alloc() > klp_shadow_get_or_alloc() > klp_shadow_free() > klp_shadow_free_all() > > that implement "shadow" variables, which allow callers to associate new > shadow fields to existing data structures. This is intended to be used > by livepatch modules seeking to emulate additions to data structure > definitions. > > See Documentation/livepatch/shadow-vars.txt for a summary of the new > shadow variable API, including a few common use cases. > > See samples/livepatch/livepatch-shadow-* for example modules that > demonstrate shadow variables. > > Signed-off-by: Joe Lawrence Acked-by: Miroslav Benes I'd wait for Petr's review. Thanks, Miroslav