Method

FwupdPluginUdevDeviceioctl

Declaration [src]

gboolean
fu_udev_device_ioctl (
  FuUdevDevice* self,
  gulong request,
  guint8* buf,
  gint* rc,
  GError** error
)

Description [src]

Control a device using a low-level request.

Available since:1.3.3

Parameters

request gulong
 

Request number.

buf guint8*
 

A buffer to use, which must be large enough for the request.

 The data is owned by the caller of the function.
rc gint*
 

The raw return value from the ioctl.

 The argument will be set by the function.
 The argument can be set to NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE for success.