git: Rename some functions to better names.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Dec 1 03:10:09 PST 2019


commit 2ac7d1050a3c50c16d77203ac6ed01a65757e5b0
Author: Sascha Wildner <saw at online.de>
Date:   Sun Dec 1 12:03:21 2019 +0100

    Rename some functions to better names.
    
    devfs_find_device_by_udev() -> devfs_find_device_by_devid()
    dev2udev()                  -> devid_from_dev()
    udev2dev()                  -> dev_from_devid()
    
    This fits with the rest of the code. 'dev' usually means a cdev_t,
    such as in make_dev(), etc. Instead of 'udev', use 'devid', since
    that's what dev_t is, a "Device ID".

Summary of changes:
 lib/libkvm/kvm_proc.c                 |  6 +++---
 share/examples/kld/cdev/module/cdev.c | 13 +++++++------
 sys/dev/drm/drm_sysctl.c              |  3 ++-
 sys/dev/misc/snp/snp.c                |  2 +-
 sys/gnu/vfs/ext2fs/ext2_vfsops.c      |  2 +-
 sys/gnu/vfs/ext2fs/ext2_vnops.c       |  2 +-
 sys/kern/kern_acct.c                  |  8 +++++---
 sys/kern/kern_conf.c                  |  6 +++---
 sys/kern/kern_kinfo.c                 |  4 ++--
 sys/kern/kern_proc.c                  |  2 +-
 sys/kern/kern_shutdown.c              |  4 ++--
 sys/kern/tty.c                        |  2 +-
 sys/kern/vfs_subr.c                   |  4 ++--
 sys/kern/vfs_vnops.c                  |  2 +-
 sys/sys/devfs.h                       |  4 ++--
 sys/sys/systm.h                       |  4 ++--
 sys/vfs/devfs/devfs_core.c            | 18 +++++++++---------
 sys/vfs/devfs/devfs_vnops.c           |  2 +-
 sys/vfs/hpfs/hpfs_vfsops.c            |  2 +-
 sys/vfs/hpfs/hpfs_vnops.c             |  2 +-
 sys/vfs/isofs/cd9660/cd9660_vfsops.c  |  2 +-
 sys/vfs/isofs/cd9660/cd9660_vnops.c   |  2 +-
 sys/vfs/msdosfs/msdosfs_vfsops.c      |  2 +-
 sys/vfs/msdosfs/msdosfs_vnops.c       |  2 +-
 sys/vfs/ntfs/ntfs_vfsops.c            |  2 +-
 sys/vfs/ntfs/ntfs_vnops.c             |  2 +-
 sys/vfs/udf/udf_vfsops.c              |  2 +-
 sys/vfs/udf/udf_vnops.c               |  2 +-
 sys/vfs/ufs/ufs_vnops.c               |  2 +-
 sys/vm/vm_swap.c                      |  2 +-
 30 files changed, 58 insertions(+), 54 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2ac7d1050a3c50c16d77203ac6ed01a65757e5b0


-- 
DragonFly BSD source repository



More information about the Commits mailing list