Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933460AbcDEQCu (ORCPT ); Tue, 5 Apr 2016 12:02:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54063 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932914AbcDEQCr (ORCPT ); Tue, 5 Apr 2016 12:02:47 -0400 Subject: Re: [RFC PATCH v6 1/5] Thread-local ABI system call: cache CPU number of running thread To: Mathieu Desnoyers , "H. Peter Anvin" References: <1459789313-4917-1-git-send-email-mathieu.desnoyers@efficios.com> <1459789313-4917-2-git-send-email-mathieu.desnoyers@efficios.com> <5702A037.60200@zytor.com> <492303698.44994.1459799188052.JavaMail.zimbra@efficios.com> <856357054.45028.1459802903401.JavaMail.zimbra@efficios.com> Cc: Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-api , Paul Turner , Andrew Hunter , Peter Zijlstra , Andy Lutomirski , Andi Kleen , Dave Watson , Chris Lameter , Ben Maurer , rostedt , "Paul E. McKenney" , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Boqun Feng From: Florian Weimer Message-ID: <5703E191.2040707@redhat.com> Date: Tue, 5 Apr 2016 18:02:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <856357054.45028.1459802903401.JavaMail.zimbra@efficios.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 599 Lines: 14 On 04/04/2016 10:48 PM, Mathieu Desnoyers wrote: > Moreover, the feature set that the application knows about, glibc > knows about, and the kernel knows about are three different things. > My intent here is to have glibc stay out of the way as much as possible, > since this is really an interface between various applications/libraries > and the kernel. Surely glibc can allocate the space based on what is advertised as needed by the kernel? Why would it limit itself to what is supported by the kernel headers it is compiled against if the actual size can be queried from the kernel? Florian