I have not one single time remembered the name of this function correctly
so obviously I gave it the wrong name. s/umakedev/makeudev/g
This commit is contained in:
parent
1ce1a8bf67
commit
f008cfcc1a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48859
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)cd9660_rrip.c 8.6 (Berkeley) 12/5/94
|
||||
* $Id: cd9660_rrip.c,v 1.14 1999/04/18 10:58:01 dcs Exp $
|
||||
* $Id: cd9660_rrip.c,v 1.15 1999/05/11 19:54:24 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -423,9 +423,9 @@ cd9660_rrip_device(p,ana)
|
||||
low = isonum_733(p->dev_t_low);
|
||||
|
||||
if (high == 0)
|
||||
ana->inop->inode.iso_rdev = umakedev(umajor(low), uminor(low));
|
||||
ana->inop->inode.iso_rdev = makeudev(umajor(low), uminor(low));
|
||||
else
|
||||
ana->inop->inode.iso_rdev = umakedev(high, uminor(low));
|
||||
ana->inop->inode.iso_rdev = makeudev(high, uminor(low));
|
||||
ana->fields &= ~ISO_SUSP_DEVICE;
|
||||
return ISO_SUSP_DEVICE;
|
||||
}
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)cd9660_rrip.c 8.6 (Berkeley) 12/5/94
|
||||
* $Id: cd9660_rrip.c,v 1.14 1999/04/18 10:58:01 dcs Exp $
|
||||
* $Id: cd9660_rrip.c,v 1.15 1999/05/11 19:54:24 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -423,9 +423,9 @@ cd9660_rrip_device(p,ana)
|
||||
low = isonum_733(p->dev_t_low);
|
||||
|
||||
if (high == 0)
|
||||
ana->inop->inode.iso_rdev = umakedev(umajor(low), uminor(low));
|
||||
ana->inop->inode.iso_rdev = makeudev(umajor(low), uminor(low));
|
||||
else
|
||||
ana->inop->inode.iso_rdev = umakedev(high, uminor(low));
|
||||
ana->inop->inode.iso_rdev = makeudev(high, uminor(low));
|
||||
ana->fields &= ~ISO_SUSP_DEVICE;
|
||||
return ISO_SUSP_DEVICE;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: kern_conf.c,v 1.46 1999/07/03 08:22:30 phk Exp $
|
||||
* $Id: kern_conf.c,v 1.47 1999/07/04 14:58:38 phk Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -225,7 +225,7 @@ makedev(int x, int y)
|
||||
udev_t
|
||||
dev2udev(dev_t x)
|
||||
{
|
||||
return umakedev(major(x), minor(x));
|
||||
return makeudev(major(x), minor(x));
|
||||
}
|
||||
|
||||
dev_t
|
||||
@ -247,7 +247,7 @@ umajor(udev_t dev)
|
||||
}
|
||||
|
||||
udev_t
|
||||
umakedev(int x, int y)
|
||||
makeudev(int x, int y)
|
||||
{
|
||||
return ((x << 8) | y);
|
||||
}
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.207 1999/07/08 06:05:55 mckusick Exp $
|
||||
* $Id: vfs_subr.c,v 1.208 1999/07/12 15:02:50 kris Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -344,16 +344,16 @@ vfs_getnewfsid(mp)
|
||||
|
||||
simple_lock(&mntid_slock);
|
||||
mtype = mp->mnt_vfc->vfc_typenum;
|
||||
mp->mnt_stat.f_fsid.val[0] = umakedev(255, mtype);
|
||||
mp->mnt_stat.f_fsid.val[0] = makeudev(255, mtype);
|
||||
mp->mnt_stat.f_fsid.val[1] = mtype;
|
||||
if (xxxfs_mntid == 0)
|
||||
++xxxfs_mntid;
|
||||
tfsid.val[0] = umakedev(255, mtype + (xxxfs_mntid << 16));
|
||||
tfsid.val[0] = makeudev(255, mtype + (xxxfs_mntid << 16));
|
||||
tfsid.val[1] = mtype;
|
||||
if (mountlist.cqh_first != (void *)&mountlist) {
|
||||
while (vfs_getvfs(&tfsid)) {
|
||||
xxxfs_mntid++;
|
||||
tfsid.val[0] = umakedev(255,
|
||||
tfsid.val[0] = makeudev(255,
|
||||
mtype + (xxxfs_mntid << 16));
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.207 1999/07/08 06:05:55 mckusick Exp $
|
||||
* $Id: vfs_subr.c,v 1.208 1999/07/12 15:02:50 kris Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -344,16 +344,16 @@ vfs_getnewfsid(mp)
|
||||
|
||||
simple_lock(&mntid_slock);
|
||||
mtype = mp->mnt_vfc->vfc_typenum;
|
||||
mp->mnt_stat.f_fsid.val[0] = umakedev(255, mtype);
|
||||
mp->mnt_stat.f_fsid.val[0] = makeudev(255, mtype);
|
||||
mp->mnt_stat.f_fsid.val[1] = mtype;
|
||||
if (xxxfs_mntid == 0)
|
||||
++xxxfs_mntid;
|
||||
tfsid.val[0] = umakedev(255, mtype + (xxxfs_mntid << 16));
|
||||
tfsid.val[0] = makeudev(255, mtype + (xxxfs_mntid << 16));
|
||||
tfsid.val[1] = mtype;
|
||||
if (mountlist.cqh_first != (void *)&mountlist) {
|
||||
while (vfs_getvfs(&tfsid)) {
|
||||
xxxfs_mntid++;
|
||||
tfsid.val[0] = umakedev(255,
|
||||
tfsid.val[0] = makeudev(255,
|
||||
mtype + (xxxfs_mntid << 16));
|
||||
}
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
|
||||
* $Id: nfs_subs.c,v 1.77 1999/06/26 02:46:30 mckusick Exp $
|
||||
* $Id: nfs_subs.c,v 1.78 1999/06/27 11:44:19 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1260,7 +1260,7 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper)
|
||||
if (v3) {
|
||||
vtyp = nfsv3tov_type(fp->fa_type);
|
||||
vmode = fxdr_unsigned(u_short, fp->fa_mode);
|
||||
rdev = umakedev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
|
||||
rdev = makeudev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
|
||||
fxdr_unsigned(int, fp->fa3_rdev.specdata2));
|
||||
fxdr_nfsv3time(&fp->fa3_mtime, &mtime);
|
||||
} else {
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95
|
||||
* $Id: nfs_serv.c,v 1.79 1999/06/23 04:44:11 julian Exp $
|
||||
* $Id: nfs_serv.c,v 1.80 1999/06/30 04:29:13 julian Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1875,7 +1875,7 @@ nfsrv_mknod(nfsd, slp, procp, mrq)
|
||||
nfsm_dissect(tl, u_int32_t *, 2 * NFSX_UNSIGNED);
|
||||
major = fxdr_unsigned(u_int32_t, *tl++);
|
||||
minor = fxdr_unsigned(u_int32_t, *tl);
|
||||
vap->va_rdev = umakedev(major, minor);
|
||||
vap->va_rdev = makeudev(major, minor);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
|
||||
* $Id: nfs_subs.c,v 1.77 1999/06/26 02:46:30 mckusick Exp $
|
||||
* $Id: nfs_subs.c,v 1.78 1999/06/27 11:44:19 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1260,7 +1260,7 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper)
|
||||
if (v3) {
|
||||
vtyp = nfsv3tov_type(fp->fa_type);
|
||||
vmode = fxdr_unsigned(u_short, fp->fa_mode);
|
||||
rdev = umakedev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
|
||||
rdev = makeudev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
|
||||
fxdr_unsigned(int, fp->fa3_rdev.specdata2));
|
||||
fxdr_nfsv3time(&fp->fa3_mtime, &mtime);
|
||||
} else {
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
|
||||
* $Id: nfs_subs.c,v 1.77 1999/06/26 02:46:30 mckusick Exp $
|
||||
* $Id: nfs_subs.c,v 1.78 1999/06/27 11:44:19 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1260,7 +1260,7 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper)
|
||||
if (v3) {
|
||||
vtyp = nfsv3tov_type(fp->fa_type);
|
||||
vmode = fxdr_unsigned(u_short, fp->fa_mode);
|
||||
rdev = umakedev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
|
||||
rdev = makeudev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
|
||||
fxdr_unsigned(int, fp->fa3_rdev.specdata2));
|
||||
fxdr_nfsv3time(&fp->fa3_mtime, &mtime);
|
||||
} else {
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95
|
||||
* $Id: nfs_serv.c,v 1.79 1999/06/23 04:44:11 julian Exp $
|
||||
* $Id: nfs_serv.c,v 1.80 1999/06/30 04:29:13 julian Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1875,7 +1875,7 @@ nfsrv_mknod(nfsd, slp, procp, mrq)
|
||||
nfsm_dissect(tl, u_int32_t *, 2 * NFSX_UNSIGNED);
|
||||
major = fxdr_unsigned(u_int32_t, *tl++);
|
||||
minor = fxdr_unsigned(u_int32_t, *tl);
|
||||
vap->va_rdev = umakedev(major, minor);
|
||||
vap->va_rdev = makeudev(major, minor);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
|
||||
* $Id: nfs_subs.c,v 1.77 1999/06/26 02:46:30 mckusick Exp $
|
||||
* $Id: nfs_subs.c,v 1.78 1999/06/27 11:44:19 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1260,7 +1260,7 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper)
|
||||
if (v3) {
|
||||
vtyp = nfsv3tov_type(fp->fa_type);
|
||||
vmode = fxdr_unsigned(u_short, fp->fa_mode);
|
||||
rdev = umakedev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
|
||||
rdev = makeudev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
|
||||
fxdr_unsigned(int, fp->fa3_rdev.specdata2));
|
||||
fxdr_nfsv3time(&fp->fa3_mtime, &mtime);
|
||||
} else {
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)systm.h 8.7 (Berkeley) 3/29/95
|
||||
* $Id: systm.h,v 1.89 1999/05/11 19:54:59 phk Exp $
|
||||
* $Id: systm.h,v 1.90 1999/05/31 20:42:41 dt Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_SYSTM_H_
|
||||
@ -314,5 +314,5 @@ udev_t dev2udev(dev_t x);
|
||||
dev_t udev2dev(udev_t x, int b);
|
||||
int uminor(udev_t dev);
|
||||
int umajor(udev_t dev);
|
||||
udev_t umakedev(int x, int y);
|
||||
udev_t makeudev(int x, int y);
|
||||
#endif /* !_SYS_SYSTM_H_ */
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)mfs_vfsops.c 8.11 (Berkeley) 6/19/95
|
||||
* $Id: mfs_vfsops.c,v 1.62 1999/05/11 19:55:03 phk Exp $
|
||||
* $Id: mfs_vfsops.c,v 1.64 1999/05/24 00:27:12 jb Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -308,7 +308,7 @@ mfs_mount(mp, path, data, ndp, p)
|
||||
goto error_1;
|
||||
}
|
||||
devvp->v_type = VBLK;
|
||||
if (checkalias(devvp, umakedev(255, mfs_minor++), (struct mount *)0))
|
||||
if (checkalias(devvp, makeudev(255, mfs_minor++), (struct mount *)0))
|
||||
panic("mfs_mount: dup dev");
|
||||
devvp->v_data = mfsp;
|
||||
mfsp->mfs_baseoff = args.base;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vm_swap.c 8.5 (Berkeley) 2/17/94
|
||||
* $Id: vm_swap.c,v 1.75 1999/07/07 04:07:03 msmith Exp $
|
||||
* $Id: vm_swap.c,v 1.76 1999/07/07 09:12:44 ache Exp $
|
||||
*/
|
||||
|
||||
#include "opt_devfs.h"
|
||||
@ -348,7 +348,7 @@ swaponvp(p, vp, dev, nblks)
|
||||
panic("Cannot get vnode for swapdev");
|
||||
vp1 = nvp;
|
||||
vp1->v_type = VBLK;
|
||||
if ((nvp = checkalias(vp1, umakedev(BDEV_MAJOR, 0),
|
||||
if ((nvp = checkalias(vp1, makeudev(BDEV_MAJOR, 0),
|
||||
(struct mount *) 0))) {
|
||||
vput(vp1);
|
||||
vp1 = nvp;
|
||||
|
Loading…
Reference in New Issue
Block a user