€•Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ*/translations/zh_CN/driver-api/device_link”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/zh_TW/driver-api/device_link”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/it_IT/driver-api/device_link”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/ja_JP/driver-api/device_link”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/ko_KR/driver-api/device_link”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/pt_BR/driver-api/device_link”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/sp_SP/driver-api/device_link”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒtarget”“”)�”}”(hŒ.. _device_link:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œ device-link”uh1hµh´Khhh²hh³ŒD/var/lib/git/docbuild/linux/Documentation/driver-api/device_link.rst”ubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒ Device links”h]”hŒ Device links”…”�”}”(hhËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhhÆh²hh³hÃh´KubhŒ paragraph”“”)�”}”(hXjBy default, the driver core only enforces dependencies between devices that are borne out of a parent/child relationship within the device hierarchy: When suspending, resuming or shutting down the system, devices are ordered based on this relationship, i.e. children are always suspended before their parent, and the parent is always resumed before its children.”h]”hXjBy default, the driver core only enforces dependencies between devices that are borne out of a parent/child relationship within the device hierarchy: When suspending, resuming or shutting down the system, devices are ordered based on this relationship, i.e. children are always suspended before their parent, and the parent is always resumed before its children.”…”�”}”(hhÛh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KhhÆh²hubhÚ)�”}”(hŒ¶Sometimes there is a need to represent device dependencies beyond the mere parent/child relationship, e.g. between siblings, and have the driver core automatically take care of them.”h]”hŒ¶Sometimes there is a need to represent device dependencies beyond the mere parent/child relationship, e.g. between siblings, and have the driver core automatically take care of them.”…”�”}”(hhéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K hhÆh²hubhÚ)�”}”(hŒºSecondly, the driver core by default does not enforce any driver presence dependencies, i.e. that one device must be bound to a driver before another one can probe or function correctly.”h]”hŒºSecondly, the driver core by default does not enforce any driver presence dependencies, i.e. that one device must be bound to a driver before another one can probe or function correctly.”…”�”}”(hh÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KhhÆh²hubhÚ)�”}”(hŒ³Often these two dependency types come together, so a device depends on another one both with regards to driver presence *and* with regards to suspend/resume and shutdown ordering.”h]”(hŒxOften these two dependency types come together, so a device depends on another one both with regards to driver presence ”…”�”}”(hjh²hh³Nh´NubhŒemphasis”“”)�”}”(hŒ*and*”h]”hŒand”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjubhŒ6 with regards to suspend/resume and shutdown ordering.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KhhÆh²hubhÚ)�”}”(hŒJDevice links allow representation of such dependencies in the driver core.”h]”hŒJDevice links allow representation of such dependencies in the driver core.”…”�”}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KhhÆh²hubhÚ)�”}”(hX|In its standard or *managed* form, a device link combines *both* dependency types: It guarantees correct suspend/resume and shutdown ordering between a "supplier" device and its "consumer" devices, and it guarantees driver presence on the supplier. The consumer devices are not probed before the supplier is bound to a driver, and they're unbound before the supplier is unbound.”h]”(hŒIn its standard or ”…”�”}”(hj5h²hh³Nh´Nubj)�”}”(hŒ *managed*”h]”hŒmanaged”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj5ubhŒ form, a device link combines ”…”�”}”(hj5h²hh³Nh´Nubj)�”}”(hŒ*both*”h]”hŒboth”…”�”}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj5ubhXF dependency types: It guarantees correct suspend/resume and shutdown ordering between a “supplierâ€� device and its “consumerâ€� devices, and it guarantees driver presence on the supplier. The consumer devices are not probed before the supplier is bound to a driver, and they’re unbound before the supplier is unbound.”…”�”}”(hj5h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KhhÆh²hubhÚ)�”}”(hXWhen driver presence on the supplier is irrelevant and only correct suspend/resume and shutdown ordering is needed, the device link may simply be set up with the ``DL_FLAG_STATELESS`` flag. In other words, enforcing driver presence on the supplier is optional.”h]”(hŒ¢When driver presence on the supplier is irrelevant and only correct suspend/resume and shutdown ordering is needed, the device link may simply be set up with the ”…”�”}”(hjgh²hh³Nh´NubhŒliteral”“”)�”}”(hŒ``DL_FLAG_STATELESS``”h]”hŒDL_FLAG_STATELESS”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjgubhŒN flag. In other words, enforcing driver presence on the supplier is optional.”…”�”}”(hjgh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K"hhÆh²hubhÚ)�”}”(hXAnother optional feature is runtime PM integration: By setting the ``DL_FLAG_PM_RUNTIME`` flag on addition of the device link, the PM core is instructed to runtime resume the supplier and keep it active whenever and for as long as the consumer is runtime resumed.”h]”(hŒDAnother optional feature is runtime PM integration: By setting the ”…”�”}”(hj‰h²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_PM_RUNTIME``”h]”hŒDL_FLAG_PM_RUNTIME”…”�”}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj‰ubhŒ® flag on addition of the device link, the PM core is instructed to runtime resume the supplier and keep it active whenever and for as long as the consumer is runtime resumed.”…”�”}”(hj‰h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K'hhÆh²hubhÅ)�”}”(hhh]”(hÊ)�”}”(hŒUsage”h]”hŒUsage”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhj©h²hh³hÃh´K-ubhÚ)�”}”(hŒ¾The earliest point in time when device links can be added is after :c:func:`device_add()` has been called for the supplier and :c:func:`device_initialize()` has been called for the consumer.”h]”(hŒCThe earliest point in time when device links can be added is after ”…”�”}”(hjºh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_add()`”h]”jp)�”}”(hjÄh]”hŒ device_add()”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œc”Œc-func”eh"]”h$]”h&]”uh1johjÂubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œdriver-api/device_link”Œ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰Œ reftarget”Œ device_add”uh1hh³hÃh´K/hjºubhŒ& has been called for the supplier and ”…”�”}”(hjºh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_initialize()`”h]”jp)�”}”(hjëh]”hŒdevice_initialize()”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjéubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_initialize”uh1hh³hÃh´K/hjºubhŒ" has been called for the consumer.”…”�”}”(hjºh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K/hj©h²hubhÚ)�”}”(hXàIt is legal to add them later, but care must be taken that the system remains in a consistent state: E.g. a device link cannot be added in the midst of a suspend/resume transition, so either commencement of such a transition needs to be prevented with :c:func:`lock_system_sleep()`, or the device link needs to be added from a function which is guaranteed not to run in parallel to a suspend/resume transition, such as from a device ``->probe`` callback or a boot-time PCI quirk.”h]”(hŒýIt is legal to add them later, but care must be taken that the system remains in a consistent state: E.g. a device link cannot be added in the midst of a suspend/resume transition, so either commencement of such a transition needs to be prevented with ”…”�”}”(hjh²hh³Nh´Nubh)�”}”(hŒ:c:func:`lock_system_sleep()`”h]”jp)�”}”(hjh]”hŒlock_system_sleep()”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒlock_system_sleep”uh1hh³hÃh´K3hjubhŒ˜, or the device link needs to be added from a function which is guaranteed not to run in parallel to a suspend/resume transition, such as from a device ”…”�”}”(hjh²hh³Nh´Nubjp)�”}”(hŒ ``->probe``”h]”hŒ->probe”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjubhŒ# callback or a boot-time PCI quirk.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K3hj©h²hubhÚ)�”}”(hX;Another example for an inconsistent state would be a device link that represents a driver presence dependency, yet is added from the consumer's ``->probe`` callback while the supplier hasn't started to probe yet: Had the driver core known about the device link earlier, it wouldn't have probed the consumer in the first place. The onus is thus on the consumer to check presence of the supplier after adding the link, and defer probing on non-presence. [Note that it is valid to create a link from the consumer's ``->probe`` callback while the supplier is still probing, but the consumer must know that the supplier is functional already at the link creation time (that is the case, for instance, if the consumer has just acquired some resources that would not have been available had the supplier not been functional then).]”h]”(hŒ’Another example for an inconsistent state would be a device link that represents a driver presence dependency, yet is added from the consumer’s ”…”�”}”(hjUh²hh³Nh´Nubjp)�”}”(hŒ ``->probe``”h]”hŒ->probe”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjUubhXn callback while the supplier hasn’t started to probe yet: Had the driver core known about the device link earlier, it wouldn’t have probed the consumer in the first place. The onus is thus on the consumer to check presence of the supplier after adding the link, and defer probing on non-presence. [Note that it is valid to create a link from the consumer’s ”…”�”}”(hjUh²hh³Nh´Nubjp)�”}”(hŒ ``->probe``”h]”hŒ->probe”…”�”}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjUubhX- callback while the supplier is still probing, but the consumer must know that the supplier is functional already at the link creation time (that is the case, for instance, if the consumer has just acquired some resources that would not have been available had the supplier not been functional then).]”…”�”}”(hjUh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K;hj©h²hubhÚ)�”}”(hX+If a device link with ``DL_FLAG_STATELESS`` set (i.e. a stateless device link) is added in the ``->probe`` callback of the supplier or consumer driver, it is typically deleted in its ``->remove`` callback for symmetry. That way, if the driver is compiled as a module, the device link is added on module load and orderly deleted on unload. The same restrictions that apply to device link addition (e.g. exclusion of a parallel suspend/resume transition) apply equally to deletion. Device links managed by the driver core are deleted automatically by it.”h]”(hŒIf a device link with ”…”�”}”(hj‡h²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_STATELESS``”h]”hŒDL_FLAG_STATELESS”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj‡ubhŒ4 set (i.e. a stateless device link) is added in the ”…”�”}”(hj‡h²hh³Nh´Nubjp)�”}”(hŒ ``->probe``”h]”hŒ->probe”…”�”}”(hj¡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj‡ubhŒM callback of the supplier or consumer driver, it is typically deleted in its ”…”�”}”(hj‡h²hh³Nh´Nubjp)�”}”(hŒ ``->remove``”h]”hŒ->remove”…”�”}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj‡ubhXh callback for symmetry. That way, if the driver is compiled as a module, the device link is added on module load and orderly deleted on unload. The same restrictions that apply to device link addition (e.g. exclusion of a parallel suspend/resume transition) apply equally to deletion. Device links managed by the driver core are deleted automatically by it.”…”�”}”(hj‡h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KGhj©h²hubhÚ)�”}”(hX<Several flags may be specified on device link addition, two of which have already been mentioned above: ``DL_FLAG_STATELESS`` to express that no driver presence dependency is needed (but only correct suspend/resume and shutdown ordering) and ``DL_FLAG_PM_RUNTIME`` to express that runtime PM integration is desired.”h]”(hŒiSeveral flags may be specified on device link addition, two of which have already been mentioned above: ”…”�”}”(hjËh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_STATELESS``”h]”hŒDL_FLAG_STATELESS”…”�”}”(hjÓh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjËubhŒu to express that no driver presence dependency is needed (but only correct suspend/resume and shutdown ordering) and ”…”�”}”(hjËh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_PM_RUNTIME``”h]”hŒDL_FLAG_PM_RUNTIME”…”�”}”(hjåh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjËubhŒ3 to express that runtime PM integration is desired.”…”�”}”(hjËh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KPhj©h²hubhÚ)�”}”(hX–Two other flags are specifically targeted at use cases where the device link is added from the consumer's ``->probe`` callback: ``DL_FLAG_RPM_ACTIVE`` can be specified to runtime resume the supplier and prevent it from suspending before the consumer is runtime suspended. ``DL_FLAG_AUTOREMOVE_CONSUMER`` causes the device link to be automatically purged when the consumer fails to probe or later unbinds.”h]”(hŒlTwo other flags are specifically targeted at use cases where the device link is added from the consumer’s ”…”�”}”(hjýh²hh³Nh´Nubjp)�”}”(hŒ ``->probe``”h]”hŒ->probe”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjýubhŒ callback: ”…”�”}”(hjýh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_RPM_ACTIVE``”h]”hŒDL_FLAG_RPM_ACTIVE”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjýubhŒ{ can be specified to runtime resume the supplier and prevent it from suspending before the consumer is runtime suspended. ”…”�”}”(hjýh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_AUTOREMOVE_CONSUMER``”h]”hŒDL_FLAG_AUTOREMOVE_CONSUMER”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjýubhŒe causes the device link to be automatically purged when the consumer fails to probe or later unbinds.”…”�”}”(hjýh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KVhj©h²hubhÚ)�”}”(hŒÓSimilarly, when the device link is added from supplier's ``->probe`` callback, ``DL_FLAG_AUTOREMOVE_SUPPLIER`` causes the device link to be automatically purged when the supplier fails to probe or later unbinds.”h]”(hŒ;Similarly, when the device link is added from supplier’s ”…”�”}”(hjAh²hh³Nh´Nubjp)�”}”(hŒ ``->probe``”h]”hŒ->probe”…”�”}”(hjIh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjAubhŒ callback, ”…”�”}”(hjAh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_AUTOREMOVE_SUPPLIER``”h]”hŒDL_FLAG_AUTOREMOVE_SUPPLIER”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjAubhŒe causes the device link to be automatically purged when the supplier fails to probe or later unbinds.”…”�”}”(hjAh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K]hj©h²hubhÚ)�”}”(hXIf neither ``DL_FLAG_AUTOREMOVE_CONSUMER`` nor ``DL_FLAG_AUTOREMOVE_SUPPLIER`` is set, ``DL_FLAG_AUTOPROBE_CONSUMER`` can be used to request the driver core to probe for a driver for the consumer driver on the link automatically after a driver has been bound to the supplier device.”h]”(hŒ If neither ”…”�”}”(hjsh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_AUTOREMOVE_CONSUMER``”h]”hŒDL_FLAG_AUTOREMOVE_CONSUMER”…”�”}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjsubhŒ nor ”…”�”}”(hjsh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_AUTOREMOVE_SUPPLIER``”h]”hŒDL_FLAG_AUTOREMOVE_SUPPLIER”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjsubhŒ is set, ”…”�”}”(hjsh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_AUTOPROBE_CONSUMER``”h]”hŒDL_FLAG_AUTOPROBE_CONSUMER”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjsubhŒ¥ can be used to request the driver core to probe for a driver for the consumer driver on the link automatically after a driver has been bound to the supplier device.”…”�”}”(hjsh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´Kahj©h²hubhÚ)�”}”(hŒÅNote, however, that any combinations of ``DL_FLAG_AUTOREMOVE_CONSUMER``, ``DL_FLAG_AUTOREMOVE_SUPPLIER`` or ``DL_FLAG_AUTOPROBE_CONSUMER`` with ``DL_FLAG_STATELESS`` are invalid and cannot be used.”h]”(hŒ(Note, however, that any combinations of ”…”�”}”(hj·h²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_AUTOREMOVE_CONSUMER``”h]”hŒDL_FLAG_AUTOREMOVE_CONSUMER”…”�”}”(hj¿h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj·ubhŒ, ”…”�”}”(hj·h²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_AUTOREMOVE_SUPPLIER``”h]”hŒDL_FLAG_AUTOREMOVE_SUPPLIER”…”�”}”(hjÑh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj·ubhŒ or ”…”�”}”(hj·h²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_AUTOPROBE_CONSUMER``”h]”hŒDL_FLAG_AUTOPROBE_CONSUMER”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj·ubhŒ with ”…”�”}”(hj·h²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_STATELESS``”h]”hŒDL_FLAG_STATELESS”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj·ubhŒ are invalid and cannot be used.”…”�”}”(hj·h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´Kfhj©h²hubeh}”(h]”Œusage”ah ]”h"]”Œusage”ah$]”h&]”uh1hÄhhÆh²hh³hÃh´K-ubhÅ)�”}”(hhh]”(hÊ)�”}”(hŒ Limitations”h]”hŒ Limitations”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhjh²hh³hÃh´KkubhÚ)�”}”(hX¥Driver authors should be aware that a driver presence dependency for managed device links (i.e. when ``DL_FLAG_STATELESS`` is not specified on link addition) may cause probing of the consumer to be deferred indefinitely. This can become a problem if the consumer is required to probe before a certain initcall level is reached. Worse, if the supplier driver is blacklisted or missing, the consumer will never be probed.”h]”(hŒeDriver authors should be aware that a driver presence dependency for managed device links (i.e. when ”…”�”}”(hj&h²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_STATELESS``”h]”hŒDL_FLAG_STATELESS”…”�”}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj&ubhX+ is not specified on link addition) may cause probing of the consumer to be deferred indefinitely. This can become a problem if the consumer is required to probe before a certain initcall level is reached. Worse, if the supplier driver is blacklisted or missing, the consumer will never be probed.”…”�”}”(hj&h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´Kmhjh²hubhÚ)�”}”(hXåMoreover, managed device links cannot be deleted directly. They are deleted by the driver core when they are not necessary any more in accordance with the ``DL_FLAG_AUTOREMOVE_CONSUMER`` and ``DL_FLAG_AUTOREMOVE_SUPPLIER`` flags. However, stateless device links (i.e. device links with ``DL_FLAG_STATELESS`` set) are expected to be removed by whoever called :c:func:`device_link_add()` to add them with the help of either :c:func:`device_link_del()` or :c:func:`device_link_remove()`.”h]”(hŒœMoreover, managed device links cannot be deleted directly. They are deleted by the driver core when they are not necessary any more in accordance with the ”…”�”}”(hjFh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_AUTOREMOVE_CONSUMER``”h]”hŒDL_FLAG_AUTOREMOVE_CONSUMER”…”�”}”(hjNh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjFubhŒ and ”…”�”}”(hjFh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_AUTOREMOVE_SUPPLIER``”h]”hŒDL_FLAG_AUTOREMOVE_SUPPLIER”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjFubhŒ@ flags. However, stateless device links (i.e. device links with ”…”�”}”(hjFh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_STATELESS``”h]”hŒDL_FLAG_STATELESS”…”�”}”(hjrh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjFubhŒ3 set) are expected to be removed by whoever called ”…”�”}”(hjFh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_add()`”h]”jp)�”}”(hj†h]”hŒdevice_link_add()”…”�”}”(hjˆh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj„ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_add”uh1hh³hÃh´KthjFubhŒ% to add them with the help of either ”…”�”}”(hjFh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_del()`”h]”jp)�”}”(hj©h]”hŒdevice_link_del()”…”�”}”(hj«h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj§ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_del”uh1hh³hÃh´KthjFubhŒ or ”…”�”}”(hjFh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_remove()`”h]”jp)�”}”(hjÌh]”hŒdevice_link_remove()”…”�”}”(hjÎh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjÊubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_remove”uh1hh³hÃh´KthjFubhŒ.”…”�”}”(hjFh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´Kthjh²hubhÚ)�”}”(hXÐPassing ``DL_FLAG_RPM_ACTIVE`` along with ``DL_FLAG_STATELESS`` to :c:func:`device_link_add()` may cause the PM-runtime usage counter of the supplier device to remain nonzero after a subsequent invocation of either :c:func:`device_link_del()` or :c:func:`device_link_remove()` to remove the device link returned by it. This happens if :c:func:`device_link_add()` is called twice in a row for the same consumer-supplier pair without removing the link between these calls, in which case allowing the PM-runtime usage counter of the supplier to drop on an attempt to remove the link may cause it to be suspended while the consumer is still PM-runtime-active and that has to be avoided. [To work around this limitation it is sufficient to let the consumer runtime suspend at least once, or call :c:func:`pm_runtime_set_suspended()` for it with PM-runtime disabled, between the :c:func:`device_link_add()` and :c:func:`device_link_del()` or :c:func:`device_link_remove()` calls.]”h]”(hŒPassing ”…”�”}”(hjóh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_RPM_ACTIVE``”h]”hŒDL_FLAG_RPM_ACTIVE”…”�”}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjóubhŒ along with ”…”�”}”(hjóh²hh³Nh´Nubjp)�”}”(hŒ``DL_FLAG_STATELESS``”h]”hŒDL_FLAG_STATELESS”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjóubhŒ to ”…”�”}”(hjóh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_add()`”h]”jp)�”}”(hj!h]”hŒdevice_link_add()”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_add”uh1hh³hÃh´K|hjóubhŒy may cause the PM-runtime usage counter of the supplier device to remain nonzero after a subsequent invocation of either ”…”�”}”(hjóh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_del()`”h]”jp)�”}”(hjDh]”hŒdevice_link_del()”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjBubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_del”uh1hh³hÃh´K|hjóubhŒ or ”…”�”}”(hjóh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_remove()`”h]”jp)�”}”(hjgh]”hŒdevice_link_remove()”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjeubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_remove”uh1hh³hÃh´K|hjóubhŒ< to remove the device link returned by it. This happens if ”…”�”}”(hjóh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_add()`”h]”jp)�”}”(hjŠh]”hŒdevice_link_add()”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjˆubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_add”uh1hh³hÃh´K|hjóubhX® is called twice in a row for the same consumer-supplier pair without removing the link between these calls, in which case allowing the PM-runtime usage counter of the supplier to drop on an attempt to remove the link may cause it to be suspended while the consumer is still PM-runtime-active and that has to be avoided. [To work around this limitation it is sufficient to let the consumer runtime suspend at least once, or call ”…”�”}”(hjóh²hh³Nh´Nubh)�”}”(hŒ$:c:func:`pm_runtime_set_suspended()`”h]”jp)�”}”(hj­h]”hŒpm_runtime_set_suspended()”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj«ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒpm_runtime_set_suspended”uh1hh³hÃh´K|hjóubhŒ. for it with PM-runtime disabled, between the ”…”�”}”(hjóh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_add()`”h]”jp)�”}”(hjÐh]”hŒdevice_link_add()”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjÎubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_add”uh1hh³hÃh´K|hjóubhŒ and ”…”�”}”(hjóh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_del()`”h]”jp)�”}”(hjóh]”hŒdevice_link_del()”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjñubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_del”uh1hh³hÃh´K|hjóubhŒ or ”…”�”}”hjósbh)�”}”(hŒ:c:func:`device_link_remove()`”h]”jp)�”}”(hjh]”hŒdevice_link_remove()”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_remove”uh1hh³hÃh´K|hjóubhŒ calls.]”…”�”}”(hjóh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K|hjh²hubhÚ)�”}”(hX“Sometimes drivers depend on optional resources. They are able to operate in a degraded mode (reduced feature set or performance) when those resources are not present. An example is an SPI controller that can use a DMA engine or work in PIO mode. The controller can determine presence of the optional resources at probe time but on non-presence there is no way to know whether they will become available in the near future (due to a supplier driver probing) or never. Consequently it cannot be determined whether to defer probing or not. It would be possible to notify drivers when optional resources become available after probing, but it would come at a high cost for drivers as switching between modes of operation at runtime based on the availability of such resources would be much more complex than a mechanism based on probe deferral. In any case optional resources are beyond the scope of device links.”h]”hX“Sometimes drivers depend on optional resources. They are able to operate in a degraded mode (reduced feature set or performance) when those resources are not present. An example is an SPI controller that can use a DMA engine or work in PIO mode. The controller can determine presence of the optional resources at probe time but on non-presence there is no way to know whether they will become available in the near future (due to a supplier driver probing) or never. Consequently it cannot be determined whether to defer probing or not. It would be possible to notify drivers when optional resources become available after probing, but it would come at a high cost for drivers as switching between modes of operation at runtime based on the availability of such resources would be much more complex than a mechanism based on probe deferral. In any case optional resources are beyond the scope of device links.”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KŠhjh²hubeh}”(h]”Œ limitations”ah ]”h"]”Œ limitations”ah$]”h&]”uh1hÄhhÆh²hh³hÃh´KkubhÅ)�”}”(hhh]”(hÊ)�”}”(hŒExamples”h]”hŒExamples”…”�”}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhjSh²hh³hÃh´K™ubhŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hXÈAn MMU device exists alongside a busmaster device, both are in the same power domain. The MMU implements DMA address translation for the busmaster device and shall be runtime resumed and kept active whenever and as long as the busmaster device is active. The busmaster device's driver shall not bind before the MMU is bound. To achieve this, a device link with runtime PM integration is added from the busmaster device (consumer) to the MMU device (supplier). The effect with regards to runtime PM is the same as if the MMU was the parent of the master device. The fact that both devices share the same power domain would normally suggest usage of a struct dev_pm_domain or struct generic_pm_domain, however these are not independent devices that happen to share a power switch, but rather the MMU device serves the busmaster device and is useless without it. A device link creates a synthetic hierarchical relationship between the devices and is thus more apt. ”h]”(hÚ)�”}”(hX4An MMU device exists alongside a busmaster device, both are in the same power domain. The MMU implements DMA address translation for the busmaster device and shall be runtime resumed and kept active whenever and as long as the busmaster device is active. The busmaster device's driver shall not bind before the MMU is bound. To achieve this, a device link with runtime PM integration is added from the busmaster device (consumer) to the MMU device (supplier). The effect with regards to runtime PM is the same as if the MMU was the parent of the master device.”h]”hX6An MMU device exists alongside a busmaster device, both are in the same power domain. The MMU implements DMA address translation for the busmaster device and shall be runtime resumed and kept active whenever and as long as the busmaster device is active. The busmaster device’s driver shall not bind before the MMU is bound. To achieve this, a device link with runtime PM integration is added from the busmaster device (consumer) to the MMU device (supplier). The effect with regards to runtime PM is the same as if the MMU was the parent of the master device.”…”�”}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K›hjkubhÚ)�”}”(hX‘The fact that both devices share the same power domain would normally suggest usage of a struct dev_pm_domain or struct generic_pm_domain, however these are not independent devices that happen to share a power switch, but rather the MMU device serves the busmaster device and is useless without it. A device link creates a synthetic hierarchical relationship between the devices and is thus more apt.”h]”hX‘The fact that both devices share the same power domain would normally suggest usage of a struct dev_pm_domain or struct generic_pm_domain, however these are not independent devices that happen to share a power switch, but rather the MMU device serves the busmaster device and is useless without it. A device link creates a synthetic hierarchical relationship between the devices and is thus more apt.”…”�”}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K¤hjkubeh}”(h]”h ]”h"]”h$]”h&]”uh1jihjfh²hh³hÃh´Nubjj)�”}”(hX7A Thunderbolt host controller comprises a number of PCIe hotplug ports and an NHI device to manage the PCIe switch. On resume from system sleep, the NHI device needs to re-establish PCI tunnels to attached devices before the hotplug ports can resume. If the hotplug ports were children of the NHI, this resume order would automatically be enforced by the PM core, but unfortunately they're aunts. The solution is to add device links from the hotplug ports (consumers) to the NHI device (supplier). A driver presence dependency is not necessary for this use case. ”h]”hÚ)�”}”(hX6A Thunderbolt host controller comprises a number of PCIe hotplug ports and an NHI device to manage the PCIe switch. On resume from system sleep, the NHI device needs to re-establish PCI tunnels to attached devices before the hotplug ports can resume. If the hotplug ports were children of the NHI, this resume order would automatically be enforced by the PM core, but unfortunately they're aunts. The solution is to add device links from the hotplug ports (consumers) to the NHI device (supplier). A driver presence dependency is not necessary for this use case.”h]”hX8A Thunderbolt host controller comprises a number of PCIe hotplug ports and an NHI device to manage the PCIe switch. On resume from system sleep, the NHI device needs to re-establish PCI tunnels to attached devices before the hotplug ports can resume. If the hotplug ports were children of the NHI, this resume order would automatically be enforced by the PM core, but unfortunately they’re aunts. The solution is to add device links from the hotplug ports (consumers) to the NHI device (supplier). A driver presence dependency is not necessary for this use case.”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K«hj‘ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjfh²hh³hÃh´Nubjj)�”}”(hX¢Discrete GPUs in hybrid graphics laptops often feature an HDA controller for HDMI/DP audio. In the device hierarchy the HDA controller is a sibling of the VGA device, yet both share the same power domain and the HDA controller is only ever needed when an HDMI/DP display is attached to the VGA device. A device link from the HDA controller (consumer) to the VGA device (supplier) aptly represents this relationship. ”h]”hÚ)�”}”(hX¡Discrete GPUs in hybrid graphics laptops often feature an HDA controller for HDMI/DP audio. In the device hierarchy the HDA controller is a sibling of the VGA device, yet both share the same power domain and the HDA controller is only ever needed when an HDMI/DP display is attached to the VGA device. A device link from the HDA controller (consumer) to the VGA device (supplier) aptly represents this relationship.”h]”hX¡Discrete GPUs in hybrid graphics laptops often feature an HDA controller for HDMI/DP audio. In the device hierarchy the HDA controller is a sibling of the VGA device, yet both share the same power domain and the HDA controller is only ever needed when an HDMI/DP display is attached to the VGA device. A device link from the HDA controller (consumer) to the VGA device (supplier) aptly represents this relationship.”…”�”}”(hj­h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´Kµhj©ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjfh²hh³hÃh´Nubjj)�”}”(hXMACPI allows definition of a device start order by way of _DEP objects. A classical example is when ACPI power management methods on one device are implemented in terms of I\ :sup:`2`\ C accesses and require a specific I\ :sup:`2`\ C controller to be present and functional for the power management of the device in question to work. ”h]”hÚ)�”}”(hXLACPI allows definition of a device start order by way of _DEP objects. A classical example is when ACPI power management methods on one device are implemented in terms of I\ :sup:`2`\ C accesses and require a specific I\ :sup:`2`\ C controller to be present and functional for the power management of the device in question to work.”h]”(hŒ®ACPI allows definition of a device start order by way of _DEP objects. A classical example is when ACPI power management methods on one device are implemented in terms of I ”…”�”}”(hjÅh²hh³Nh´NubhŒ superscript”“”)�”}”(hŒ:sup:`2`”h]”hŒ2”…”�”}”(hjÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÍhjÅubhŒ' C accesses and require a specific I ”…”�”}”(hjÅh²hh³Nh´NubjÎ)�”}”(hŒ:sup:`2`”h]”hŒ2”…”�”}”(hjáh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jÍhjÅubhŒg C controller to be present and functional for the power management of the device in question to work.”…”�”}”(hjÅh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´K¼hjÁubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjfh²hh³hÃh´Nubjj)�”}”(hŒÂIn some SoCs a functional dependency exists from display, video codec and video processing IP cores on transparent memory access IP cores that handle burst access and compression/decompression. ”h]”hÚ)�”}”(hŒÁIn some SoCs a functional dependency exists from display, video codec and video processing IP cores on transparent memory access IP cores that handle burst access and compression/decompression.”h]”hŒÁIn some SoCs a functional dependency exists from display, video codec and video processing IP cores on transparent memory access IP cores that handle burst access and compression/decompression.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KÂhjÿubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjfh²hh³hÃh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1jdh³hÃh´K›hjSh²hubeh}”(h]”Œexamples”ah ]”h"]”Œexamples”ah$]”h&]”uh1hÄhhÆh²hh³hÃh´K™ubhÅ)�”}”(hhh]”(hÊ)�”}”(hŒ Alternatives”h]”hŒ Alternatives”…”�”}”(hj*h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhj'h²hh³hÃh´KÇubje)�”}”(hhh]”(jj)�”}”(hXA struct dev_pm_domain can be used to override the bus, class or device type callbacks. It is intended for devices sharing a single on/off switch, however it does not guarantee a specific suspend/resume ordering, this needs to be implemented separately. It also does not by itself track the runtime PM status of the involved devices and turn off the power switch only when all of them are runtime suspended. Furthermore it cannot be used to enforce a specific shutdown ordering or a driver presence dependency. ”h]”hÚ)�”}”(hXA struct dev_pm_domain can be used to override the bus, class or device type callbacks. It is intended for devices sharing a single on/off switch, however it does not guarantee a specific suspend/resume ordering, this needs to be implemented separately. It also does not by itself track the runtime PM status of the involved devices and turn off the power switch only when all of them are runtime suspended. Furthermore it cannot be used to enforce a specific shutdown ordering or a driver presence dependency.”h]”hXA struct dev_pm_domain can be used to override the bus, class or device type callbacks. It is intended for devices sharing a single on/off switch, however it does not guarantee a specific suspend/resume ordering, this needs to be implemented separately. It also does not by itself track the runtime PM status of the involved devices and turn off the power switch only when all of them are runtime suspended. Furthermore it cannot be used to enforce a specific shutdown ordering or a driver presence dependency.”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KÉhj;ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihj8h²hh³hÃh´Nubjj)�”}”(hŒ»A struct generic_pm_domain is a lot more heavyweight than a device link and does not allow for shutdown ordering or driver presence dependencies. It also cannot be used on ACPI systems. ”h]”hÚ)�”}”(hŒºA struct generic_pm_domain is a lot more heavyweight than a device link and does not allow for shutdown ordering or driver presence dependencies. It also cannot be used on ACPI systems.”h]”hŒºA struct generic_pm_domain is a lot more heavyweight than a device link and does not allow for shutdown ordering or driver presence dependencies. It also cannot be used on ACPI systems.”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KÒhjSubah}”(h]”h ]”h"]”h$]”h&]”uh1jihj8h²hh³hÃh´Nubeh}”(h]”h ]”h"]”h$]”h&]”jjuh1jdh³hÃh´KÉhj'h²hubeh}”(h]”Œ alternatives”ah ]”h"]”Œ alternatives”ah$]”h&]”uh1hÄhhÆh²hh³hÃh´KÇubhÅ)�”}”(hhh]”(hÊ)�”}”(hŒImplementation”h]”hŒImplementation”…”�”}”(hj|h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhjyh²hh³hÃh´K×ubhÚ)�”}”(hŒ~The device hierarchy, which -- as the name implies -- is a tree, becomes a directed acyclic graph once device links are added.”h]”hŒ~The device hierarchy, which -- as the name implies -- is a tree, becomes a directed acyclic graph once device links are added.”…”�”}”(hjŠh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KÙhjyh²hubhÚ)�”}”(hXÀOrdering of these devices during suspend/resume is determined by the dpm_list. During shutdown it is determined by the devices_kset. With no device links present, the two lists are a flattened, one-dimensional representations of the device tree such that a device is placed behind all its ancestors. That is achieved by traversing the ACPI namespace or OpenFirmware device tree top-down and appending devices to the lists as they are discovered.”h]”hXÀOrdering of these devices during suspend/resume is determined by the dpm_list. During shutdown it is determined by the devices_kset. With no device links present, the two lists are a flattened, one-dimensional representations of the device tree such that a device is placed behind all its ancestors. That is achieved by traversing the ACPI namespace or OpenFirmware device tree top-down and appending devices to the lists as they are discovered.”…”�”}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´KÜhjyh²hubhÚ)�”}”(hXŽOnce device links are added, the lists need to satisfy the additional constraint that a device is placed behind all its suppliers, recursively. To ensure this, upon addition of the device link the consumer and the entire sub-graph below it (all children and consumers of the consumer) are moved to the end of the list. (Call to :c:func:`device_reorder_to_tail()` from :c:func:`device_link_add()`.)”h]”(hXIOnce device links are added, the lists need to satisfy the additional constraint that a device is placed behind all its suppliers, recursively. To ensure this, upon addition of the device link the consumer and the entire sub-graph below it (all children and consumers of the consumer) are moved to the end of the list. (Call to ”…”�”}”(hj¦h²hh³Nh´Nubh)�”}”(hŒ":c:func:`device_reorder_to_tail()`”h]”jp)�”}”(hj°h]”hŒdevice_reorder_to_tail()”…”�”}”(hj²h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj®ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_reorder_to_tail”uh1hh³hÃh´Kähj¦ubhŒ from ”…”�”}”(hj¦h²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_add()`”h]”jp)�”}”(hjÓh]”hŒdevice_link_add()”…”�”}”(hjÕh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjÑubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_add”uh1hh³hÃh´Kähj¦ubhŒ.)”…”�”}”(hj¦h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´Kähjyh²hubhÚ)�”}”(hX„To prevent introduction of dependency loops into the graph, it is verified upon device link addition that the supplier is not dependent on the consumer or any children or consumers of the consumer. (Call to :c:func:`device_is_dependent()` from :c:func:`device_link_add()`.) If that constraint is violated, :c:func:`device_link_add()` will return ``NULL`` and a ``WARNING`` will be logged.”h]”(hŒÏTo prevent introduction of dependency loops into the graph, it is verified upon device link addition that the supplier is not dependent on the consumer or any children or consumers of the consumer. (Call to ”…”�”}”(hjúh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_is_dependent()`”h]”jp)�”}”(hjh]”hŒdevice_is_dependent()”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_is_dependent”uh1hh³hÃh´KëhjúubhŒ from ”…”�”}”(hjúh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_add()`”h]”jp)�”}”(hj'h]”hŒdevice_link_add()”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj%ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_add”uh1hh³hÃh´KëhjúubhŒ#.) If that constraint is violated, ”…”�”}”(hjúh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_add()`”h]”jp)�”}”(hjJh]”hŒdevice_link_add()”…”�”}”(hjLh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjHubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰jãŒdevice_link_add”uh1hh³hÃh´KëhjúubhŒ will return ”…”�”}”(hjúh²hh³Nh´Nubjp)�”}”(hŒ``NULL``”h]”hŒNULL”…”�”}”(hjkh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjúubhŒ and a ”…”�”}”(hjúh²hh³Nh´Nubjp)�”}”(hŒ ``WARNING``”h]”hŒWARNING”…”�”}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjúubhŒ will be logged.”…”�”}”(hjúh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´Këhjyh²hubhÚ)�”}”(hXyNotably this also prevents the addition of a device link from a parent device to a child. However the converse is allowed, i.e. a device link from a child to a parent. Since the driver core already guarantees correct suspend/resume and shutdown ordering between parent and child, such a device link only makes sense if a driver presence dependency is needed on top of that. In this case driver authors should weigh carefully if a device link is at all the right tool for the purpose. A more suitable approach might be to simply use deferred probing or add a device flag causing the parent driver to be probed before the child one.”h]”hXyNotably this also prevents the addition of a device link from a parent device to a child. However the converse is allowed, i.e. a device link from a child to a parent. Since the driver core already guarantees correct suspend/resume and shutdown ordering between parent and child, such a device link only makes sense if a driver presence dependency is needed on top of that. In this case driver authors should weigh carefully if a device link is at all the right tool for the purpose. A more suitable approach might be to simply use deferred probing or add a device flag causing the parent driver to be probed before the child one.”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´Kòhjyh²hubeh}”(h]”Œimplementation”ah ]”h"]”Œimplementation”ah$]”h&]”uh1hÄhhÆh²hh³hÃh´K×ubhÅ)�”}”(hhh]”(hÊ)�”}”(hŒ State machine”h]”hŒ State machine”…”�”}”(hj®h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhj«h²hh³hÃh´KþubhŒindex”“”)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(Œsingle”Œdevice_link_state (C enum)”Œc.device_link_state”hNt”auh1j¼hj«h²hh³Nh´NubhŒdesc”“”)�”}”(hhh]”(hŒdesc_signature”“”)�”}”(hŒdevice_link_state”h]”hŒdesc_signature_line”“”)�”}”(hŒenum device_link_state”h]”(hŒdesc_sig_keyword”“”)�”}”(hŒenum”h]”hŒenum”…”�”}”(hjàh²hh³Nh´Nubah}”(h]”h ]”Œk”ah"]”h$]”h&]”uh1jÞhjÚh²hh³Œ^/var/lib/git/docbuild/linux/Documentation/driver-api/device_link:256: ./include/linux/device.h”h´KubhŒdesc_sig_space”“”)�”}”(hŒ ”h]”hŒ ”…”�”}”(hjòh²hh³Nh´Nubah}”(h]”h ]”Œw”ah"]”h$]”h&]”uh1jðhjÚh²hh³jïh´KubhŒ desc_name”“”)�”}”(hŒdevice_link_state”h]”hŒ desc_sig_name”“”)�”}”(hjÖh]”hŒdevice_link_state”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1j hj ubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”Œ xml:space”Œpreserve”uh1j hjÚh²hh³jïh´Kubeh}”(h]”h ]”h"]”h$]”h&]”j j Œ add_permalink”ˆuh1jØŒsphinx_line_type”Œ declarator”hjÔh²hh³jïh´Kubah}”(h]”jËah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1jÒh³jïh´KhjÏh²hubhŒ desc_content”“”)�”}”(hhh]”hÚ)�”}”(hŒDevice link states.”h]”hŒDevice link states.”…”�”}”(hj: h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³Œ^/var/lib/git/docbuild/linux/Documentation/driver-api/device_link:256: ./include/linux/device.h”h´M—hj7 h²hubah}”(h]”h ]”h"]”h$]”h&]”uh1j5 hjÏh²hh³jïh´Kubeh}”(h]”h ]”(jÑŒenum”eh"]”h$]”h&]”Œdomain”jÑŒobjtype”jR Œdesctype”jR Œnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1jÍh²hhj«h³Nh´NubhŒ container”“”)�”}”(hXÐ**Constants** ``DL_STATE_NONE`` The presence of the drivers is not being tracked. ``DL_STATE_DORMANT`` None of the supplier/consumer drivers is present. ``DL_STATE_AVAILABLE`` The supplier driver is present, but the consumer is not. ``DL_STATE_CONSUMER_PROBE`` The consumer is probing (supplier driver present). ``DL_STATE_ACTIVE`` Both the supplier and consumer drivers are present. ``DL_STATE_SUPPLIER_UNBIND`` The supplier driver is unbinding.”h]”(hÚ)�”}”(hŒ **Constants**”h]”hŒstrong”“”)�”}”(hjd h]”hŒ Constants”…”�”}”(hjh h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jf hjb ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³Œ^/var/lib/git/docbuild/linux/Documentation/driver-api/device_link:256: ./include/linux/device.h”h´M›hj^ ubhŒdefinition_list”“”)�”}”(hhh]”(hŒdefinition_list_item”“”)�”}”(hŒD``DL_STATE_NONE`` The presence of the drivers is not being tracked. ”h]”(hŒterm”“”)�”}”(hŒ``DL_STATE_NONE``”h]”jp)�”}”(hj‹ h]”hŒ DL_STATE_NONE”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj‰ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j‡ h³Œ^/var/lib/git/docbuild/linux/Documentation/driver-api/device_link:256: ./include/linux/device.h”h´Mžhjƒ ubhŒ definition”“”)�”}”(hhh]”hÚ)�”}”(hŒ1The presence of the drivers is not being tracked.”h]”hŒ1The presence of the drivers is not being tracked.”…”�”}”(hj¦ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³j  h´Mžhj£ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡ hjƒ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� h³j  h´Mžhj~ ubj‚ )�”}”(hŒG``DL_STATE_DORMANT`` None of the supplier/consumer drivers is present. ”h]”(jˆ )�”}”(hŒ``DL_STATE_DORMANT``”h]”jp)�”}”(hjÆ h]”hŒDL_STATE_DORMANT”…”�”}”(hjÈ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjÄ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j‡ h³Œ^/var/lib/git/docbuild/linux/Documentation/driver-api/device_link:256: ./include/linux/device.h”h´M¡hjÀ ubj¢ )�”}”(hhh]”hÚ)�”}”(hŒ1None of the supplier/consumer drivers is present.”h]”hŒ1None of the supplier/consumer drivers is present.”…”�”}”(hjß h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³jÛ h´M¡hjÜ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡ hjÀ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� h³jÛ h´M¡hj~ ubj‚ )�”}”(hŒP``DL_STATE_AVAILABLE`` The supplier driver is present, but the consumer is not. ”h]”(jˆ )�”}”(hŒ``DL_STATE_AVAILABLE``”h]”jp)�”}”(hjÿ h]”hŒDL_STATE_AVAILABLE”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjý ubah}”(h]”h ]”h"]”h$]”h&]”uh1j‡ h³Œ^/var/lib/git/docbuild/linux/Documentation/driver-api/device_link:256: ./include/linux/device.h”h´M¤hjù ubj¢ )�”}”(hhh]”hÚ)�”}”(hŒ8The supplier driver is present, but the consumer is not.”h]”hŒ8The supplier driver is present, but the consumer is not.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³j h´M¤hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡ hjù ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� h³j h´M¤hj~ ubj‚ )�”}”(hŒO``DL_STATE_CONSUMER_PROBE`` The consumer is probing (supplier driver present). ”h]”(jˆ )�”}”(hŒ``DL_STATE_CONSUMER_PROBE``”h]”jp)�”}”(hj8 h]”hŒDL_STATE_CONSUMER_PROBE”…”�”}”(hj: h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj6 ubah}”(h]”h ]”h"]”h$]”h&]”uh1j‡ h³Œ^/var/lib/git/docbuild/linux/Documentation/driver-api/device_link:256: ./include/linux/device.h”h´M§hj2 ubj¢ )�”}”(hhh]”hÚ)�”}”(hŒ2The consumer is probing (supplier driver present).”h]”hŒ2The consumer is probing (supplier driver present).”…”�”}”(hjQ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³jM h´M§hjN ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡ hj2 ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� h³jM h´M§hj~ ubj‚ )�”}”(hŒH``DL_STATE_ACTIVE`` Both the supplier and consumer drivers are present. ”h]”(jˆ )�”}”(hŒ``DL_STATE_ACTIVE``”h]”jp)�”}”(hjq h]”hŒDL_STATE_ACTIVE”…”�”}”(hjs h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjo ubah}”(h]”h ]”h"]”h$]”h&]”uh1j‡ h³Œ^/var/lib/git/docbuild/linux/Documentation/driver-api/device_link:256: ./include/linux/device.h”h´Mªhjk ubj¢ )�”}”(hhh]”hÚ)�”}”(hŒ3Both the supplier and consumer drivers are present.”h]”hŒ3Both the supplier and consumer drivers are present.”…”�”}”(hjŠ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³j† h´Mªhj‡ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡ hjk ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� h³j† h´Mªhj~ ubj‚ )�”}”(hŒ>``DL_STATE_SUPPLIER_UNBIND`` The supplier driver is unbinding.”h]”(jˆ )�”}”(hŒ``DL_STATE_SUPPLIER_UNBIND``”h]”jp)�”}”(hjª h]”hŒDL_STATE_SUPPLIER_UNBIND”…”�”}”(hj¬ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj¨ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j‡ h³Œ^/var/lib/git/docbuild/linux/Documentation/driver-api/device_link:256: ./include/linux/device.h”h´M¬hj¤ ubj¢ )�”}”(hhh]”hÚ)�”}”(hŒ!The supplier driver is unbinding.”h]”hŒ!The supplier driver is unbinding.”…”�”}”(hjà h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³Œ^/var/lib/git/docbuild/linux/Documentation/driver-api/device_link:256: ./include/linux/device.h”h´M­hjÀ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡ hj¤ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� h³j¿ h´M¬hj~ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j| hj^ ubeh}”(h]”h ]”Œ kernelindent”ah"]”h$]”h&]”uh1j\ hj«h²hh³Nh´NubhŒ literal_block”“”)�”}”(hXR .=============================. | | v | DORMANT <=> AVAILABLE <=> CONSUMER_PROBE => ACTIVE ^ | | | '============ SUPPLIER_UNBIND <============'”h]”hXR .=============================. | | v | DORMANT <=> AVAILABLE <=> CONSUMER_PROBE => ACTIVE ^ | | | '============ SUPPLIER_UNBIND <============'”…”�”}”hjí sbah}”(h]”h ]”h"]”h$]”h&]”j j uh1jë h³hÃh´Mhj«h²hubje)�”}”(hhh]”(jj)�”}”(hŒóThe initial state of a device link is automatically determined by :c:func:`device_link_add()` based on the driver presence on the supplier and consumer. If the link is created before any devices are probed, it is set to ``DL_STATE_DORMANT``. ”h]”hÚ)�”}”(hŒòThe initial state of a device link is automatically determined by :c:func:`device_link_add()` based on the driver presence on the supplier and consumer. If the link is created before any devices are probed, it is set to ``DL_STATE_DORMANT``.”h]”(hŒBThe initial state of a device link is automatically determined by ”…”�”}”(hj h²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_link_add()`”h]”jp)�”}”(hj h]”hŒdevice_link_add()”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰Œ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)�”}”Œdata”]”sbjãŒdevice_link_add”uh1hh³hÃh´M hj ubhŒ€ based on the driver presence on the supplier and consumer. If the link is created before any devices are probed, it is set to ”…”�”}”(hj h²hh³Nh´Nubjp)�”}”(hŒ``DL_STATE_DORMANT``”h]”hŒDL_STATE_DORMANT”…”�”}”(hj5 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj ubhŒ.”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´M hjþ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjû h²hh³hÃh´Nubjj)�”}”(hŒ·When a supplier device is bound to a driver, links to its consumers progress to ``DL_STATE_AVAILABLE``. (Call to :c:func:`device_links_driver_bound()` from :c:func:`driver_bound()`.) ”h]”hÚ)�”}”(hŒ¶When a supplier device is bound to a driver, links to its consumers progress to ``DL_STATE_AVAILABLE``. (Call to :c:func:`device_links_driver_bound()` from :c:func:`driver_bound()`.)”h]”(hŒPWhen a supplier device is bound to a driver, links to its consumers progress to ”…”�”}”(hjW h²hh³Nh´Nubjp)�”}”(hŒ``DL_STATE_AVAILABLE``”h]”hŒDL_STATE_AVAILABLE”…”�”}”(hj_ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjW ubhŒ . (Call to ”…”�”}”(hjW h²hh³Nh´Nubh)�”}”(hŒ%:c:func:`device_links_driver_bound()`”h]”jp)�”}”(hjs h]”hŒdevice_links_driver_bound()”…”�”}”(hju h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjq ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒdevice_links_driver_bound”uh1hh³hÃh´MhjW ubhŒ from ”…”�”}”(hjW h²hh³Nh´Nubh)�”}”(hŒ:c:func:`driver_bound()`”h]”jp)�”}”(hj– h]”hŒdriver_bound()”…”�”}”(hj˜ h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj” ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, j㌠driver_bound”uh1hh³hÃh´MhjW ubhŒ.)”…”�”}”(hjW h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´MhjS ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjû h²hh³hÃh´Nubjj)�”}”(hXüBefore a consumer device is probed, presence of supplier drivers is verified by checking the consumer device is not in the wait_for_suppliers list and by checking that links to suppliers are in ``DL_STATE_AVAILABLE`` state. The state of the links is updated to ``DL_STATE_CONSUMER_PROBE``. (Call to :c:func:`device_links_check_suppliers()` from :c:func:`really_probe()`.) This prevents the supplier from unbinding. (Call to :c:func:`wait_for_device_probe()` from :c:func:`device_links_unbind_consumers()`.) ”h]”hÚ)�”}”(hXûBefore a consumer device is probed, presence of supplier drivers is verified by checking the consumer device is not in the wait_for_suppliers list and by checking that links to suppliers are in ``DL_STATE_AVAILABLE`` state. The state of the links is updated to ``DL_STATE_CONSUMER_PROBE``. (Call to :c:func:`device_links_check_suppliers()` from :c:func:`really_probe()`.) This prevents the supplier from unbinding. (Call to :c:func:`wait_for_device_probe()` from :c:func:`device_links_unbind_consumers()`.)”h]”(hŒÂBefore a consumer device is probed, presence of supplier drivers is verified by checking the consumer device is not in the wait_for_suppliers list and by checking that links to suppliers are in ”…”�”}”(hjÇ h²hh³Nh´Nubjp)�”}”(hŒ``DL_STATE_AVAILABLE``”h]”hŒDL_STATE_AVAILABLE”…”�”}”(hjÏ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjÇ ubhŒ. state. The state of the links is updated to ”…”�”}”(hjÇ h²hh³Nh´Nubjp)�”}”(hŒ``DL_STATE_CONSUMER_PROBE``”h]”hŒDL_STATE_CONSUMER_PROBE”…”�”}”(hjá h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjÇ ubhŒ . (Call to ”…”�”}”(hjÇ h²hh³Nh´Nubh)�”}”(hŒ(:c:func:`device_links_check_suppliers()`”h]”jp)�”}”(hjõ h]”hŒdevice_links_check_suppliers()”…”�”}”(hj÷ h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjó ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒdevice_links_check_suppliers”uh1hh³hÃh´MhjÇ ubhŒ from ”…”�”}”(hjÇ h²hh³Nh´Nubh)�”}”(hŒ:c:func:`really_probe()`”h]”jp)�”}”(hj h]”hŒreally_probe()”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, j㌠really_probe”uh1hh³hÃh´MhjÇ ubhŒ7.) This prevents the supplier from unbinding. (Call to ”…”�”}”(hjÇ h²hh³Nh´Nubh)�”}”(hŒ!:c:func:`wait_for_device_probe()`”h]”jp)�”}”(hj; h]”hŒwait_for_device_probe()”…”�”}”(hj= h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj9 ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒwait_for_device_probe”uh1hh³hÃh´MhjÇ ubhŒ from ”…”�”}”hjÇ sbh)�”}”(hŒ):c:func:`device_links_unbind_consumers()`”h]”jp)�”}”(hj^ h]”hŒdevice_links_unbind_consumers()”…”�”}”(hj` h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj\ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒdevice_links_unbind_consumers”uh1hh³hÃh´MhjÇ ubhŒ.)”…”�”}”(hjÇ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´Mhjà ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjû h²hh³hÃh´Nubjj)�”}”(hŒšIf the probe fails, links to suppliers revert back to ``DL_STATE_AVAILABLE``. (Call to :c:func:`device_links_no_driver()` from :c:func:`really_probe()`.) ”h]”hÚ)�”}”(hŒ™If the probe fails, links to suppliers revert back to ``DL_STATE_AVAILABLE``. (Call to :c:func:`device_links_no_driver()` from :c:func:`really_probe()`.)”h]”(hŒ6If the probe fails, links to suppliers revert back to ”…”�”}”(hj� h²hh³Nh´Nubjp)�”}”(hŒ``DL_STATE_AVAILABLE``”h]”hŒDL_STATE_AVAILABLE”…”�”}”(hj— h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johj� ubhŒ . (Call to ”…”�”}”(hj� h²hh³Nh´Nubh)�”}”(hŒ":c:func:`device_links_no_driver()`”h]”jp)�”}”(hj« h]”hŒdevice_links_no_driver()”…”�”}”(hj­ h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj© ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒdevice_links_no_driver”uh1hh³hÃh´M!hj� ubhŒ from ”…”�”}”(hj� h²hh³Nh´Nubh)�”}”(hŒ:c:func:`really_probe()`”h]”jp)�”}”(hjÎ h]”hŒreally_probe()”…”�”}”(hjÐ h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjÌ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, j㌠really_probe”uh1hh³hÃh´M!hj� ubhŒ.)”…”�”}”(hj� h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´M!hj‹ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjû h²hh³hÃh´Nubjj)�”}”(hŒšIf the probe succeeds, links to suppliers progress to ``DL_STATE_ACTIVE``. (Call to :c:func:`device_links_driver_bound()` from :c:func:`driver_bound()`.) ”h]”hÚ)�”}”(hŒ™If the probe succeeds, links to suppliers progress to ``DL_STATE_ACTIVE``. (Call to :c:func:`device_links_driver_bound()` from :c:func:`driver_bound()`.)”h]”(hŒ6If the probe succeeds, links to suppliers progress to ”…”�”}”(hjÿ h²hh³Nh´Nubjp)�”}”(hŒ``DL_STATE_ACTIVE``”h]”hŒDL_STATE_ACTIVE”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjÿ ubhŒ . (Call to ”…”�”}”(hjÿ h²hh³Nh´Nubh)�”}”(hŒ%:c:func:`device_links_driver_bound()`”h]”jp)�”}”(hj h]”hŒdevice_links_driver_bound()”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒdevice_links_driver_bound”uh1hh³hÃh´M$hjÿ ubhŒ from ”…”�”}”(hjÿ h²hh³Nh´Nubh)�”}”(hŒ:c:func:`driver_bound()`”h]”jp)�”}”(hj> h]”hŒdriver_bound()”…”�”}”(hj@ h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj< ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jã•/,Œ driver_bound”uh1hh³hÃh´M$hjÿ ubhŒ.)”…”�”}”(hjÿ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´M$hjû ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjû h²hh³hÃh´Nubjj)�”}”(hX When the consumer's driver is later on removed, links to suppliers revert back to ``DL_STATE_AVAILABLE``. (Call to :c:func:`__device_links_no_driver()` from :c:func:`device_links_driver_cleanup()`, which in turn is called from :c:func:`__device_release_driver()`.) ”h]”hÚ)�”}”(hXWhen the consumer's driver is later on removed, links to suppliers revert back to ``DL_STATE_AVAILABLE``. (Call to :c:func:`__device_links_no_driver()` from :c:func:`device_links_driver_cleanup()`, which in turn is called from :c:func:`__device_release_driver()`.)”h]”(hŒTWhen the consumer’s driver is later on removed, links to suppliers revert back to ”…”�”}”(hjo h²hh³Nh´Nubjp)�”}”(hŒ``DL_STATE_AVAILABLE``”h]”hŒDL_STATE_AVAILABLE”…”�”}”(hjw h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjo ubhŒ . (Call to ”…”�”}”(hjo h²hh³Nh´Nubh)�”}”(hŒ$:c:func:`__device_links_no_driver()`”h]”jp)�”}”(hj‹ h]”hŒ__device_links_no_driver()”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj‰ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒ__device_links_no_driver”uh1hh³hÃh´M'hjo ubhŒ from ”…”�”}”(hjo h²hh³Nh´Nubh)�”}”(hŒ':c:func:`device_links_driver_cleanup()`”h]”jp)�”}”(hj® h]”hŒdevice_links_driver_cleanup()”…”�”}”(hj° h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj¬ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒdevice_links_driver_cleanup”uh1hh³hÃh´M'hjo ubhŒ, which in turn is called from ”…”�”}”(hjo h²hh³Nh´Nubh)�”}”(hŒ#:c:func:`__device_release_driver()`”h]”jp)�”}”(hjÑ h]”hŒ__device_release_driver()”…”�”}”(hjÓ h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjÏ ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒ__device_release_driver”uh1hh³hÃh´M'hjo ubhŒ.)”…”�”}”(hjo h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´M'hjk ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjû h²hh³hÃh´Nubjj)�”}”(hXBefore a supplier's driver is removed, links to consumers that are not bound to a driver are updated to ``DL_STATE_SUPPLIER_UNBIND``. (Call to :c:func:`device_links_busy()` from :c:func:`__device_release_driver()`.) This prevents the consumers from binding. (Call to :c:func:`device_links_check_suppliers()` from :c:func:`really_probe()`.) Consumers that are bound are freed from their driver; consumers that are probing are waited for until they are done. (Call to :c:func:`device_links_unbind_consumers()` from :c:func:`__device_release_driver()`.) Once all links to consumers are in ``DL_STATE_SUPPLIER_UNBIND`` state, the supplier driver is released and the links revert to ``DL_STATE_DORMANT``. (Call to :c:func:`device_links_driver_cleanup()` from :c:func:`__device_release_driver()`.) ”h]”hÚ)�”}”(hXBefore a supplier's driver is removed, links to consumers that are not bound to a driver are updated to ``DL_STATE_SUPPLIER_UNBIND``. (Call to :c:func:`device_links_busy()` from :c:func:`__device_release_driver()`.) This prevents the consumers from binding. (Call to :c:func:`device_links_check_suppliers()` from :c:func:`really_probe()`.) Consumers that are bound are freed from their driver; consumers that are probing are waited for until they are done. (Call to :c:func:`device_links_unbind_consumers()` from :c:func:`__device_release_driver()`.) Once all links to consumers are in ``DL_STATE_SUPPLIER_UNBIND`` state, the supplier driver is released and the links revert to ``DL_STATE_DORMANT``. (Call to :c:func:`device_links_driver_cleanup()` from :c:func:`__device_release_driver()`.)”h]”(hŒjBefore a supplier’s driver is removed, links to consumers that are not bound to a driver are updated to ”…”�”}”(hjh²hh³Nh´Nubjp)�”}”(hŒ``DL_STATE_SUPPLIER_UNBIND``”h]”hŒDL_STATE_SUPPLIER_UNBIND”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjubhŒ . (Call to ”…”�”}”(hjh²hh³Nh´Nubh)�”}”(hŒ:c:func:`device_links_busy()`”h]”jp)�”}”(hjh]”hŒdevice_links_busy()”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒdevice_links_busy”uh1hh³hÃh´M-hjubhŒ from ”…”�”}”(hjh²hh³Nh´Nubh)�”}”(hŒ#:c:func:`__device_release_driver()`”h]”jp)�”}”(hjAh]”hŒ__device_release_driver()”…”�”}”(hjCh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj?ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒ__device_release_driver”uh1hh³hÃh´M-hjubhŒ6.) This prevents the consumers from binding. (Call to ”…”�”}”(hjh²hh³Nh´Nubh)�”}”(hŒ(:c:func:`device_links_check_suppliers()`”h]”jp)�”}”(hjdh]”hŒdevice_links_check_suppliers()”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjbubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒdevice_links_check_suppliers”uh1hh³hÃh´M-hjubhŒ from ”…”�”}”hjsbh)�”}”(hŒ:c:func:`really_probe()`”h]”jp)�”}”(hj‡h]”hŒreally_probe()”…”�”}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj…ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, j㌠really_probe”uh1hh³hÃh´M-hjubhŒ�.) Consumers that are bound are freed from their driver; consumers that are probing are waited for until they are done. (Call to ”…”�”}”(hjh²hh³Nh´Nubh)�”}”(hŒ):c:func:`device_links_unbind_consumers()`”h]”jp)�”}”(hjªh]”hŒdevice_links_unbind_consumers()”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj¨ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒdevice_links_unbind_consumers”uh1hh³hÃh´M-hjubhŒ from ”…”�”}”hjsbh)�”}”(hŒ#:c:func:`__device_release_driver()`”h]”jp)�”}”(hjÍh]”hŒ__device_release_driver()”…”�”}”(hjÏh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjËubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒ__device_release_driver”uh1hh³hÃh´M-hjubhŒ&.) Once all links to consumers are in ”…”�”}”(hjh²hh³Nh´Nubjp)�”}”(hŒ``DL_STATE_SUPPLIER_UNBIND``”h]”hŒDL_STATE_SUPPLIER_UNBIND”…”�”}”(hjîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjubhŒ@ state, the supplier driver is released and the links revert to ”…”�”}”(hjh²hh³Nh´Nubjp)�”}”(hŒ``DL_STATE_DORMANT``”h]”hŒDL_STATE_DORMANT”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1johjubhŒ . (Call to ”…”�”}”hjsbh)�”}”(hŒ':c:func:`device_links_driver_cleanup()`”h]”jp)�”}”(hjh]”hŒdevice_links_driver_cleanup()”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johjubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒdevice_links_driver_cleanup”uh1hh³hÃh´M-hjubhŒ from ”…”�”}”hjsbh)�”}”(hŒ#:c:func:`__device_release_driver()`”h]”jp)�”}”(hj7h]”hŒ__device_release_driver()”…”�”}”(hj9h²hh³Nh´Nubah}”(h]”h ]”(jÐjÑŒc-func”eh"]”h$]”h&]”uh1johj5ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jÝŒ refdomain”jÑŒreftype”Œfunc”Œ refexplicit”‰Œrefwarn”‰j( j, jãŒ__device_release_driver”uh1hh³hÃh´M-hjubhŒ.)”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´M-hjþ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jihjû h²hh³hÃh´Nubeh}”(h]”h ]”h"]”h$]”h&]”jjuh1jdh³hÃh´M hj«h²hubeh}”(h]”Œ state-machine”ah ]”h"]”Œ state machine”ah$]”h&]”uh1hÄhhÆh²hh³hÃh´KþubhÅ)�”}”(hhh]”(hÊ)�”}”(hŒAPI”h]”hŒAPI”…”�”}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÉhjrh²hh³hÃh´M>ubhÚ)�”}”(hŒBSee device_link_add(), device_link_del() and device_link_remove().”h]”hŒBSee device_link_add(), device_link_del() and device_link_remove().”…”�”}”(hjƒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÙh³hÃh´M@hjrh²hubeh}”(h]”Œapi”ah ]”h"]”Œapi”ah$]”h&]”uh1hÄhhÆh²hh³hÃh´M>ubeh}”(h]”(Œ device-links”hÂeh ]”h"]”(Œ device links”Œ device_link”eh$]”h&]”uh1hÄhhh²hh³hÃh´KŒexpect_referenced_by_name”}”jŸh·sŒexpect_referenced_by_id”}”hÂh·subeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÃuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hÉNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jÉŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÃŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”hÂ]”h·asŒnameids”}”(jŸhÂjžj›jjjPjMj$j!jvjsj¨j¥jojlj–j“uŒ nametypes”}”(jŸˆjž‰j‰jP‰j$‰jv‰j¨‰jo‰j–‰uh}”(hÂhÆj›hÆjj©jMjj!jSjsj'j¥jyjlj«jËjÔj“jruŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”hŒsystem_message”“”)�”}”(hhh]”hÚ)�”}”(hhh]”hŒ1Hyperlink target "device-link" is not referenced.”…”�”}”hj3sbah}”(h]”h ]”h"]”h$]”h&]”uh1hÙhj0ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”hÃŒline”Kuh1j.ubaŒ transformer”NŒ include_log”]”Œ decoration”Nh²hub.