If CONFIG_PM is not set, the pm_ptr() will ensure that the struct dev_pm_ops and callbacks are removed without the need for __maybe_unused markings. In this case we can't simply use DEFINE_RUNTIME_DEV_PM_OPS() because that would provide suspend and resume functions without the checks...
206 int (*suspend)(struct device *dev, pm_message_t state); 207 int (*resume)(struct device *dev); 208 209 const struct kobj_ns_type_operations *ns_type; 210 const void *(*namespace)(struct device *dev); 211 212 const struct dev_pm_ops *pm; 213 214 struct subsys_private *p; ...
206 int (*suspend)(struct device *dev, pm_message_t state); 207 int (*resume)(struct device *dev); 208 209 const struct kobj_ns_type_operations *ns_type; 210 const void *(*namespace)(struct device *dev); 211 212 const struct dev_pm_ops *pm; 213 214 struct subsys_private *p; ...
int (*remove)(struct device *dev); void (*shutdown)(struct device *dev); int (*online)(struct device *dev); int (*offline)(struct device *dev); int (*suspend)(struct device *dev, pm_message_t state); int (*resume)(struct device *dev); const struct dev_pm_ops *pm; const str...
struct pm* next; const char* name; void(*init)(void); void(*deinit(void); void* condition; }; static struct pm pm_list; static uint8_t pm_num; static uint8_t pm_status; int pm_register(const struct pm* pm , const char* name) ...
static int sysctl_pm_do_suspend(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *fpos) { int retval, mode; @@ -198,13 +198,13 @@ static int try_set_cmode(int new_cmode) } static int cmode_procctl(ctl_table *ctl, int write, struct file *filp, ...
void(*adjust_link)(struct net_device *dev); }; phy_driverstructphy_driver{ structmdio_driver_commonmdiodrv; u32 phy_id; char*name; u32 phy_id_mask; u32 features; u32 flags; constvoid*driver_data; int(*soft_reset)(struct phy_device *phydev); ...
audio_dev_update_controls(9F) audio_dev_warn(9F) audio_engine_alloc(9F) audio_engine_free(9F) audio_engine_get_private(9F) audio_engine_set_private(9F) audio_fini_ops(9F) audio_init_ops(9F) backq(9F) bcanput(9F) bcanputnext(9F) bcmp(9F) bcopy(9F) bioaligned(9F) bioclone(9F) ...
上节中,除了简单的框架,我们还看到了一个和总线驱动相关的结构体bus_type 。这个结构体的定义在include/linux/device.h 中。本节先简单介绍结构体中的成员,再对每个成员作详细描述。[cpp]01.s t r u c t b u s _t y p e { 02.c o n s t c h a r *n a m e ; 03.s t ...
AM and PM with "Convert.ToDateTime(string)" Am I missing something? Ambiguous match found when calling method with same name different parameter in unit testing an array of inherited classes An error "#endregion directive expected" in UIMap.cs when trying to build my CodedUI tests An error...