1 Linux Devlink Documentation
2 ===========================
4 devlink is an API to expose device information and resources not directly
5 related to any device class, such as chip-wide/switch-ASIC-wide configuration.
10 Driver facing APIs are currently transitioning to allow more explicit
11 locking. Drivers can use the existing ``devlink_*`` set of APIs, or
12 new APIs prefixed by ``devl_*``. The older APIs handle all the locking
13 in devlink core, but don't allow registration of most sub-objects once
14 the main devlink object is itself registered. The newer ``devl_*`` APIs assume
15 the devlink instance lock is already held. Drivers can take the instance
16 lock by calling ``devl_lock()``. It is also held all callbacks of devlink
19 Drivers are encouraged to use the devlink instance lock for their own needs.
21 Interface documentation
22 -----------------------
24 The following pages describe various interfaces available through devlink in
43 Driver-specific documentation
44 -----------------------------
46 Each driver that implements ``devlink`` is expected to document what
47 parameters, info versions, and other features it supports.