[RFC][PATCH 0/2] KABI example conversion and cleanup

Avi Kivity avi at argo.co.il
Sun Mar 26 19:24:47 CEST 2006


Kyle Moffett wrote:
> On Mar 26, 2006, at 08:29:49, Avi Kivity wrote:
>> Kyle Moffett wrote:
>>> Well I guess you could call it UABI, but that might also imply that 
>>> it's _userspace_ that defines the interface, instead of the kernel.  
>>> Since the headers themselves are rather tightly coupled with the 
>>> kernel, I think I'll stick with the KABI name for now (unless 
>>> somebody can come up with a better one, of course :-D).
>>
>> How about __linux, or __linux_abi? There are ABIs for other 
>> components, and other OSes. Linux is the name of the project after all.
>
> The other thing that I quickly noticed while writing up the patches is 
> that it's kind of tedious typing __kabi_ over and over again.  I 
> actually did first try with __linux_abi_ but the typing effort and 
> finger cramps made me give up on that really quickly.
#define _LA(x) __linux_abi_##x

struct _LA(whatever) {
    int foo;
    int bar;
};

struct _LA(another) {
    ...
};

#undef _LA

?

-- 
error compiling committee.c: too many arguments to function



More information about the llh-discuss mailing list