FwupdPlugin.Volume.new_by_devnum
Description: Reference for FwupdPlugin.Volume.new_by_devnum

### Constructor

# FwupdPlugin Volumenew_by_devnum

#### Declaration [src]

    FuVolume*
    fu_volume_new_by_devnum (
      guint32 devnum,
      GError** error
    )

#### Description [src]

Finds the first volume from the specified device.

Available since: | 1.8.2

#### Parameters

`devnum` | `guint32`
| A device number.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `FuVolume`
| A volume, or `NULL` if the device was not found.
| The caller of the function takes ownership of the data, and is responsible for freeing it.