Skip to content

Commit 949c875

Browse files
committed
api: Add unix_device_hotplug_subsystem_device_option extension
Signed-off-by: Kadin Sayani <kadin.sayani@canonical.com>
1 parent cb1a3e0 commit 949c875

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/api-extensions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2531,3 +2531,7 @@ This adds scope metadata to `GET /1.0/metadata/configuration`. Options marked wi
25312531
## `unix_device_hotplug_ownership_inherit`
25322532

25332533
Adds a new {config:option}`device-unix-hotplug-device-conf:ownership.inherit` configuration option for `unix-hotplug` devices. This option controls whether the device inherits ownership (GID and/or UID) from the host. When set to `true` and GID and/or UID are unset, host ownership is inherited. When set to `false`, host ownership is not inherited and ownership can be configured by setting {config:option}`device-unix-hotplug-device-conf:gid` and {config:option}`device-unix-hotplug-device-conf:uid`.
2534+
2535+
## `unix_device_hotplug_subsystem_device_option`
2536+
2537+
Adds a new {config:option}`device-unix-hotplug-device-conf:subsystem` configuration option for `unix-hotplug` devices. This adds support for detecting `unix-hotplug` devices by subsystem, and can be used in conjunction with {config:option}`device-unix-hotplug-device-conf:productid` and {config:option}`device-unix-hotplug-device-conf:vendorid`.

shared/version/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ var APIExtensions = []string{
426426
"images_all_projects",
427427
"metadata_configuration_scope",
428428
"unix_device_hotplug_ownership_inherit",
429+
"unix_device_hotplug_subsystem_device_option",
429430
}
430431

431432
// APIExtensionsCount returns the number of available API extensions.

0 commit comments

Comments
 (0)