docs: def nvmlDeviceGetCurrPcieLinkGeneration(handle):
      r"""
      /**
       * Retrieves the current PCIe link generation
       *
       * For Fermi &tm; or newer fully supported devices.
       *
       * @param device                               The identifier of the target device
       * @param currLinkGen                          Reference in which to return the current PCIe link generation
       *
       * @return
       *         - \ref NVML_SUCCESS                 if \a currLinkGen has been populated
       *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
       *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a device is invalid or \a currLinkGen is null
       *         - \ref NVML_ERROR_NOT_SUPPORTED     if PCIe link information is not available
       *         - \ref NVML_ERROR_GPU_IS_LOST       if the target GPU has fallen off the bus or is otherwise inaccessible
       *         - \ref NVML_ERROR_UNKNOWN           on any unexpected error
       */
      nvmlReturn_t DECLDIR nvmlDeviceGetCurrPcieLinkGeneration
      """
      fn = _nvmlGetFunctionPointer("nvmlDeviceGetCurrPcieLinkGeneration")
      gen = c_uint()
      ret = fn(handle, byref(gen))
      _nvmlCheckReturn(ret)
      return bytes_to_str(gen.value)