def is_kernel_module_loaded(module_name):
    """
    Checks whether the kernel module with the specified name is loaded.

    Args:
        module_name (str) : Name of the module to check.

    Returns:
        True, if the module is loaded; otherwise False.

    """
    with open("/proc/modules") as file:
        lines = file.readlines()
    lines = [x.strip() for x in lines]
    for line in lines:
        other_module_name = line.split(" ")[0]
        if (other_module_name == module_name):
            return True
    return False