From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Lynch Subject: Re: [PATCH] user-cr: Extract headers from kernel source tree. Date: Sat, 03 Oct 2009 16:40:41 -0500 Message-ID: <1254606041.2928.3.camel@localhost.localdomain> References: <1254554424-2979-2-git-send-email-matthltc@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1254554424-2979-2-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Matt Helsley Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org On Sat, 2009-10-03 at 00:20 -0700, Matt Helsley wrote: > Sanitize kernel headers for userspace by extracting non-__KERNEL__ > portions of the various checkpoint headers and placing them in a > similar organization of userspace headers. > > The script is run from the top level of the user-cr source tree like: > > ./scripts/extract-headers.sh -s -o ./include > > The patch includes a copy of the auto-generated headers and adjusts > the user-cr programs to use them. I appreciate the effort put into this, but why isn't the "headers_install" target of the kernel Makefile sufficient to produce headers that are usable by userspace? So far as I know, other projects with complex kernel/user interfaces (e.g. kvm) haven't had to resort to special-purpose programs like this.