code: def get_devmm(name):
      '''
      Get major/minor info from a device
  
      CLI Example:
  
      .. code-block:: bash
  
         salt '*' file.get_devmm /dev/chr
      '''
      name = os.path.expanduser(name)
  
      if is_chrdev(name) or is_blkdev(name):
          stat_structure = os.stat(name)
          return (
                  os.major(stat_structure.st_rdev),
                  os.minor(stat_structure.st_rdev))
      else:
          return (0, 0f get_devmm(name):
      '''
      Get major/minor info from a device
  
      CLI Example:
  
      .. code-block:: bash
  
         salt '*' file.get_devmm /dev/chr
      '''
      name = os.path.expanduser(name)
  
      if is_chrdev(name) or is_blkdev(name):
          stat_structure = os.stat(name)
          return (
                  os.major(stat_structure.st_rdev),
                  os.minor(stat_structure.st_rdev))
      else:
          return (0, 0)
docs: Get major/minor info from a device
  
      CLI Example:
  
      .. code-block:: bash
  
         salt '*' file.get_devmm /dev/chr