code: def get_isolated_cpus():
      
      # The cpu/isolated sysfs was added in Linux 4.2
      # (commit 59f30abe94bff50636c8cad45207a01fdcb2ee49)
      path = sysfs_path('devices/system/cpu/isolated')
      isolated = read_first_line(path)
      if isolated:
          return parse_cpu_list(isolated)
  
      cmdline = read_first_line(proc_path('cmdline'))
      if cmdline:
          match = re.search(r'\bisolcpus=([^ ]+)', cmdline)
          if match:
              isolated = match.group(1)
              return parse_cpu_list(isolated)
  
      return None
docs: Get the list of isolated CPUs.
  
      Return a sorted list of CPU identifiers, or return None if no CPU is
      isolated.