code: def available():
      '''
      Return a list of all available kernel modules
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' kmod.available
      '''
      ret = []
      for path in __salt__['file.find']('/boot/kernel', name='*.ko$'):
          bpath = os.path.basename(path)
          comps = bpath.split('.')
          if 'ko' in comps:
              # This is a kernel module, return it without the .ko extension
              ret.append('.'.join(comps[:comps.index('ko')]))
      return ref available():
      '''
      Return a list of all available kernel modules
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' kmod.available
      '''
      ret = []
      for path in __salt__['file.find']('/boot/kernel', name='*.ko$'):
          bpath = os.path.basename(path)
          comps = bpath.split('.')
          if 'ko' in comps:
              # This is a kernel module, return it without the .ko extension
              ret.append('.'.join(comps[:comps.index('ko')]))
      return ret
docs: Return a list of all available kernel modules
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' kmod.available