All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: major/minor split
Date: 20 Mar 2003 15:52:18 -0800	[thread overview]
Message-ID: <b5dk7i$md2$1@cesium.transmeta.com> (raw)
In-Reply-To: UTC200303202224.h2KMOXC01107.aeb@smtp.cwi.nl

Followup to:  <UTC200303202224.h2KMOXC01107.aeb@smtp.cwi.nl>
By author:    Andries.Brouwer@cwi.nl
In newsgroup: linux.dev.kernel
> 
> For kdev_t (8,1) is 0x00080001 and (8,256) is 0x00080100.
> So kdev_t allows simple fast composition and decomposition,
> but is restricted to the kernel.
> While dev_t requires a conditional, since it has to remain
> compatible with the old 8+8 userspace.
> 

I would suggest, instead:

typedef struct kdev {
       u32 major, minor;
} kdev_t;

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
Architectures needed: ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64

  parent reply	other threads:[~2003-03-20 23:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-20 22:24 major/minor split Andries.Brouwer
2003-03-20 23:23 ` Roman Zippel
2003-03-21  0:04   ` H. Peter Anvin
2003-03-20 23:52 ` H. Peter Anvin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-21  7:35 Andries.Brouwer
2003-03-19 21:40 Andries.Brouwer
2003-03-20 21:00 ` Roman Zippel
2003-03-20 21:47   ` Joel Becker
2003-03-20 22:03     ` 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='b5dk7i$md2$1@cesium.transmeta.com' \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.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 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.