Subject: Re: filehandle
To: YAMAMOTO Takashi <>
From: David Laight <>
List: tech-kern
Date: 07/21/2006 19:10:20
On Sun, Jul 16, 2006 at 02:22:10PM +0900, YAMAMOTO Takashi wrote:
> 2. how about unexporting fhandle_t from userland completely?
>   ie. make them void *.  as filehandle is now variable sized,
>   there isn't much point to represent it as a C structure.
>   (this can be done without abi change.)
> int getfh(const char *path, void *fhp, size_t *size);
> int fhopen(const void *fhp, size_t size, int flags);

I'd prefer it if an incomplete structure type was used, rather that 'void'.
That way any application is less likely to pass entirely the wrong sort
of pointer...

So you continue to export fhandle_y, but don't expose the header file
that defines any contents.


David Laight: