class DdiReference
Defined at line 33 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.h
An RAII helper class for lifetime management of intrusively refcounted DDI
Physical Interfaces.
A typical usage scenario of `DdiReference` is a `DisplayDevice` owning
`DdiReference` to keep the DDI physical layer enabled when the display is on,
and destroying the `DdiReference` to release ownership of the PHY when
tearing down the display, which will finally turn off the PHY once all the
display devices are removed.
Note that since `DdiPhysicalLayer` is not thread-safe, all the
`DdiPhysicalLayer`s and `DdiReference`s should be created, accessed and
destroyed by only one single thread.
Public Methods
void DdiReference ()
Null reference.
Defined at line 16 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.cc
void DdiReference (DdiPhysicalLayer * phy)
Reference to a `phy` owned and managed by `manager`.
Defined at line 18 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.cc
void ~DdiReference ()
Defined at line 23 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.cc
void DdiReference (DdiReference && rhs)
Moveable.
Defined at line 29 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.cc
DdiReference & operator= (DdiReference && rhs)
Defined at line 34 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.cc
void DdiReference (const DdiReference & )
Not copyable.
Defined at line 43 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.h
DdiReference & operator= (const DdiReference & )
Defined at line 44 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.h
DdiPhysicalLayer::PhysicalLayerInfo GetPhysicalLayerInfo ()
This forwards return value of `DdiPhysicalLayer::GetPhysicalLayerInfo()`.
Callers should only call this on a non-null `DdiReference` object.
Defined at line 44 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.cc
bool IsNull ()
Defined at line 50 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.h
bool operator bool ()
Defined at line 51 of file ../../src/graphics/display/drivers/intel-display/ddi-physical-layer-manager.h