Out of openat flag space

Sudip Mukherjee sudipm.mukherjee at gmail.com
Wed Apr 8 04:17:58 EDT 2015


On Wed, Apr 8, 2015 at 1:30 PM, Kernel Apprentice
<kernelapprentice at gmail.com> wrote:
> Hello,
>
>> Hello,
>>
>> Now that we have O_TMPFILE and O_BENEATH added to the openat flags, there
>> is no space left to add more flags since the flags variable is a 32 bit
>> int. How does one resolve this issue and extend this? A new syscall with a
>> 64bit wide flags support?
>
> Maybe I'm missing something, but a signed 32 bit integer variable holds
> a maximum value of
>
>   2,147,483,647

as far as i know each bit of the number will represent a flag. so a 8
bit value can have a maximum of 8 flags and not 256 flags . same goes
for a 32 bit  integer.

regards
sudip



More information about the Kernelnewbies mailing list