Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2009 17:57:16 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_znode.c src/sys/compat/linux linux_stats.c src/sys/compat/svr4 svr4_types.h src/sys/dev/xen/blkback blkback.c src/sys/fs/cd9660 cd9660_rrip.c src/sys/nfs4client nfs4_subs.c src/sys/nfsclient nfs_vnops.c ...
Message-ID:  <200901281758.n0SHwgL4084560@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2009-01-28 17:57:16 UTC

  FreeBSD src repository

  Modified files:
    sys/cddl/contrib/opensolaris/uts/common/fs/zfs zfs_znode.c 
    sys/compat/linux     linux_stats.c 
    sys/compat/svr4      svr4_types.h 
    sys/dev/xen/blkback  blkback.c 
    sys/fs/cd9660        cd9660_rrip.c 
    sys/nfs4client       nfs4_subs.c 
    sys/nfsclient        nfs_vnops.c 
    sys/nfsserver        nfs_srvsubs.c 
    sys/sys              conf.h param.h types.h 
  Log:
  SVN rev 187830 on 2009-01-28 17:57:16Z by ed
  
  Last step of splitting up minor and unit numbers: remove minor().
  
  Inside the kernel, the minor() function was responsible for obtaining
  the device minor number of a character device. Because we made device
  numbers dynamically allocated and independent of the unit number passed
  to make_dev() a long time ago, it was actually a misnomer. If you really
  want to obtain the device number, you should use dev2udev().
  
  We already converted all the drivers to use dev2unit() to obtain the
  device unit number, which is still used by a lot of drivers. I've
  noticed not a single driver passes NULL to dev2unit(). Even if they
  would, its behaviour would make little sense. This is why I've removed
  the NULL check.
  
  Ths commit removes minor(), minor2unit() and unit2minor() from the
  kernel. Because there was a naming collision with uminor(), we can
  rename umajor() and uminor() back to major() and minor(). This means
  that the makedev(3) manual page also applies to kernel space code now.
  
  I suspect umajor() and uminor() isn't used that often in external code,
  but to make it easier for other parties to port their code, I've
  increased __FreeBSD_version to 800062.
  
  Revision  Changes    Path
  1.23      +1 -1      src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c
  1.94      +3 -3      src/sys/compat/linux/linux_stats.c
  1.7       +2 -2      src/sys/compat/svr4/svr4_types.h
  1.3       +2 -2      src/sys/dev/xen/blkback/blkback.c
  1.35      +2 -2      src/sys/fs/cd9660/cd9660_rrip.c
  1.7       +1 -1      src/sys/nfs4client/nfs4_subs.c
  1.296     +2 -2      src/sys/nfsclient/nfs_vnops.c
  1.163     +2 -2      src/sys/nfsserver/nfs_srvsubs.c
  1.247     +1 -4      src/sys/sys/conf.h
  1.382     +1 -1      src/sys/sys/param.h
  1.102     +1 -9      src/sys/sys/types.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901281758.n0SHwgL4084560>