code: def ioctls_from_header():
      hdr = (
          (
              pathlib.Path(__file__).parent.parent.parent
              / "extra/qcom_gpu_driver/msm_kgsl.h"
          )
          .read_text()
          .replace("\\\n", "")
      )
      pattern = r"#define\s+(IOCTL_KGSL_[A-Z0-9_]+)\s+_IOWR?\(KGSL_IOC_TYPE,\s+(0x[0-9a-fA-F]+),\s+struct\s([A-Za-z0-9_]+)\)"
      matches = re.findall(pattern, hdr, re.MULTILINE)
      return {
          int(nr, 0x10): (name, getattr(msm_kgsl, "struct_" + sname))
          for name, nr, sname in matches
      }
  
file_path: tinygrad/extra/qcom_gpu_driver/opencl_ioctl.py
imports: import ctypes, ctypes.util, struct, fcntl, re
  from hexdump import hexdump
  from tinygrad.runtime.ops_gpu import CLDevice, CLAllocator
  import pathlib, sys
  import xml.etree.ElementTree
  from extra.qcom_gpu_driver import msm_kgsl
  import mmap
  from tinygrad import Tensor, Device, TinyJit
label_desc: Use image node_id 1 for calling a global function with example usage: ioctls_from_header() and returns: unknown