From: kernelapprentice@gmail.com (Kernel Apprentice)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Out of openat flag space
Date: Wed, 08 Apr 2015 10:52:53 +0200 [thread overview]
Message-ID: <5524EC65.1070106@gmail.com> (raw)
In-Reply-To: <CADVatmPdjKdrbnAHZDYfKpZ9L0Ywho801F1DSfd4Ft9wYK806g@mail.gmail.com>
Am 08.04.2015 um 10:17 schrieb Sudip Mukherjee:
> On Wed, Apr 8, 2015 at 1:30 PM, Kernel Apprentice
> <kernelapprentice@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.
Yes of course. But that's not what I meant. If you take the following
hex value that has been used as a flag:
0x4000000 (= 4 * 16 ^ 6 = 67108864)
which equals
00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00
-- -- -
(= 1 * 2 ^ 26 = 67108864)
in binary, then you can see that there's room for 5 more flags. This is
what I was actually getting at.
But maybe I'm off here.
>
> regards
> sudip
>
next prev parent reply other threads:[~2015-04-08 8:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-07 17:05 Out of openat flag space David Legault
2015-04-07 23:04 ` Nicholas Krause
2015-04-08 9:54 ` David Legault
2015-04-08 8:00 ` Kernel Apprentice
2015-04-08 8:17 ` Sudip Mukherjee
2015-04-08 8:52 ` Kernel Apprentice [this message]
2015-04-08 8:20 ` Ricardo Ribalda Delgado
2015-04-08 9:49 ` David Legault
2015-04-08 10:06 ` Kernel Apprentice
2015-04-08 10:30 ` David Legault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5524EC65.1070106@gmail.com \
--to=kernelapprentice@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).