From: Andries.Brouwer@cwi.nl
To: Andries.Brouwer@cwi.nl, alan@lxorguk.ukuu.org.uk
Cc: R.E.Wolff@bitwizard.nl, aqchen@us.ibm.com,
linux-kernel@vger.kernel.org, torvalds@transmeta.com
Subject: Re: Minor numbers
Date: Mon, 14 May 2001 23:05:13 +0200 (MET DST) [thread overview]
Message-ID: <UTC200105142105.XAA09291.aeb@vlet.cwi.nl> (raw)
> Im very interested in 32bit dev_t or at least implementing
> the 'lots of majors' half of it because we are probably
> going to need it in the 2.5 years before we have a 2.6
Yes, a larger dev_t has been desirable for a long time,
and more and more kludges are invented to work around its lack.
Still, changing this is fairly simple.
I firmly believe that we want to go to 64-bit. In case there
is an intermediate step, that means that it would have to be 16+16,
in order not to introduce complications later.
>> The system call itself cannot easily be changed to take a larger dev_t,
>> mostly because under old glibc the high order part would be random.
> Is that true or is it always happening to be clear ?
I wrote that talking about 64-bit dev_t. For 32-bit one might be
slightly more optimistic. The C calling conventions will widen a
short to an int, I suppose.
It is true however that older glibc does its best to make sure
the kernel doesnt see more than 16 bits:
int
__xmknod (int vers, const char *path, mode_t mode, dev_t *dev) {
unsigned short int k_dev;
k_dev = ((major (*dev) & 0xff) << 8) | (minor (*dev) & 0xff);
return __syscall_mknod (path, mode, k_dev);
}
Andries
next reply other threads:[~2001-05-14 21:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-14 21:05 Andries.Brouwer [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-01 15:40 Minor Numbers sah
2001-05-14 18:09 Minor numbers Andries.Brouwer
2001-05-14 20:06 ` Alan Cox
2001-05-14 17:05 Andries.Brouwer
2001-05-14 17:04 ` Alan Cox
2001-05-14 16:53 Andries.Brouwer
2001-05-14 16:57 ` Alan Cox
2001-05-14 1:28 Alex Q Chen
2001-05-14 8:22 ` Alan Cox
2001-05-14 13:02 ` Rogier Wolff
2001-05-14 14:57 ` Alan Cox
2001-05-14 16:02 ` H. Peter Anvin
2001-05-14 17:13 ` Joel Becker
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=UTC200105142105.XAA09291.aeb@vlet.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=R.E.Wolff@bitwizard.nl \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=aqchen@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.