def nvmlDeviceGetMinorNumber(handle):
    r"""
    /**
     * Retrieves minor number for the device. The minor number for the device is such that the Nvidia device node file for
     * each GPU will have the form /dev/nvidia[minor number].
     *
     * For all products.
     * Supported only for Linux
     *
     * @param device                                The identifier of the target device
     * @param minorNumber                           Reference in which to return the minor number for the device
     * @return
     *         - \ref NVML_SUCCESS                 if the minor number is successfully retrieved
     *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
     *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a device is invalid or \a minorNumber is NULL
     *         - \ref NVML_ERROR_NOT_SUPPORTED     if this query is not supported by the device
     *         - \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 nvmlDeviceGetMinorNumber
    """
    c_minor_number = c_uint()
    fn = _nvmlGetFunctionPointer("nvmlDeviceGetMinorNumber")
    ret = fn(handle, byref(c_minor_number))
    _nvmlCheckReturn(ret)
    return bytes_to_str(c_minor_number.value)