[gpm] Linux device number bug report

Nico Schottelius nico-linux@schottelius.org
Thu Jan 15 14:50:54 CET 2004


As normal I am busy, but not dead.

Please have a look into the cvs sources. If it is wrong there
(I will try to check it this evening, too), we got to fix it.

But there are other things todo [next mail].

Nico


WEI Yongjun [Thu, Jan 15, 2004 at 04:27:21PM +0800]:
> 
> Hello,
> 
> I have some questions about device number extension.
> 
> In Linux kernel 2.6, device number will be extended from 16-bit to 32-bit.
> All utilities and libraries should make corresponding extension for this new
> feature in kernel 2.6.
> 
> I find that "gpm-1.19.3" uses structure dev_t and operates the device number
> as 16-bit.
> ----------------------------------------------------------------------------
> --------------
> 1. gpm-root.c line 49:
> 
> #ifdef HAVE_SYS_SYSMACROS_H
> #include <sys/sysmacros.h>
> #else
> #define major(dev) (((unsigned) (dev))>>8)
> #define minor(dev) ((dev)&0xff)
> #endif
> 
> 
> This is a backup for lost of system defined macro major and minor, but all
> of these operations
> look dev_t as 16 bits instead of 32 bits, so they will call problem when
> actually use them.
> ----------------------------------------------------------------------------
> --------------
> 
> Since I didn't find any information about this aspect in homepage of this
> package, I wonder whether the latest version has completed the device number
> extension? If not, will it be completed in the future? And when?
> 
> Looking forward to answering.
> 
> 
> 
> --------------------------------------------------
> Wei Yongjun
> Dept. of Technology and Development
> Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
> No. 16-5, Guanzhou Rd., Nanjing, P.R.China
> PHONE: +86+25-6630523-633
> FUJITSU INTERNAL: 79955-651
> FAX: +86+25-3317685
> Mail: yjwei@nanjing-fnst.com
> --------------------------------------------------
> 
> _______________________________________________
> gpm mailing list
> gpm@lists.linux.it
> http://lists.linux.it/listinfo/gpm
> 

-- 
Keep it simple & stupid, use what's available.
pgp: 8D0E E27A          | Nico Schottelius
http://nerd-hosting.net | http://linux.schottelius.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.linux.it/pipermail/gpm/attachments/20040115/73c76dad/attachment.pgp


More information about the gpm mailing list