Method

FwupdPluginUdevDeviceadd_flag

since: 2.0.0

Declaration [src]

void
fu_udev_device_add_flag (
  FuUdevDevice* self,
  FuUdevDeviceFlags flag
)

Description [src]

Sets the parameters to use when opening the device.

For example FU_UDEV_DEVICE_FLAG_OPEN_READ means that fu_device_open() would use O_RDONLY rather than O_RDWR which is the default.

Available since: 2.0.0

Parameters

flag

Type: FuUdevDeviceFlags

Udev device flag, e.g. FU_UDEV_DEVICE_FLAG_OPEN_READ.