FwupdPlugin.UdevDevice.write_sysfs

### Method

# FwupdPlugin UdevDevicewrite_sysfs

#### Declaration [src]

    gboolean
    fu_udev_device_write_sysfs (
      FuUdevDevice* self,
      const gchar* attribute,
      const gchar* val,
      GError** error
    )

#### Description [src]

Writes data into a sysfs attribute.

Available since: | 1.4.5

#### Parameters

`attribute` | `const gchar*`
| Sysfs attribute name.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`val` | `const gchar*`
| Data to write into the attribute.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `gboolean`
| `TRUE` for success.