XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
xwds.c
浏览该文件的文档.
1
21#include <xwcd/ds/standard.h>
22#include <xwcd/ds/object.h>
23#include <xwcd/ds/device.h>
24#include <xwcd/ds/xwds.h>
25
26#if defined(XWCDCFG_ds_PM) && (1 == XWCDCFG_ds_PM)
27static __xwds_code
29
30static __xwds_code
31void xwds_pm_report_devices_resuming(struct xwds * ds, xwer_t rc);
32#endif
33
35void xwds_init(struct xwds * ds)
36{
39}
40
41#if defined(XWCDCFG_ds_PM) && (1 == XWCDCFG_ds_PM)
44{
45 xwer_t rc;
46
47 rc = xwds_device_suspend_all(ds, false);
49 return rc;
50}
51
57static __xwds_code
59{
60 /* TODO:FIXME */
61 XWOS_UNUSED(ds);
62 XWDS_BUG_ON(rc < 0);
63}
64
67{
68 xwer_t rc;
69
70 rc = xwds_device_resume_all(ds, false);
72 return rc;
73}
74
80static __xwds_code
82{
83 /* TODO:FIXME */
84 XWOS_UNUSED(ds);
85 XWDS_BUG_ON(rc < 0);
86}
87#endif
玄武设备栈:设备基类
xwer_t xwds_device_suspend_all(struct xwds *ds, bool ign_err)
XWDS API:暂停所有设备
Definition device.c:398
xwer_t xwds_device_resume_all(struct xwds *ds, bool ign_err)
XWDS API:继续所有设备
Definition device.c:425
#define XWDS_BUG_ON(x)
Definition standard.h:43
#define __xwds_code
Definition standard.h:31
#define __xwds_api
Definition standard.h:33
xwer_t xwds_pm_resume(struct xwds *ds)
XWDS API:继续设备栈
Definition xwds.c:66
void xwds_init(struct xwds *ds)
XWDS API:初始化设备栈
Definition xwds.c:35
xwer_t xwds_pm_suspend(struct xwds *ds)
XWDS API:暂停设备栈
Definition xwds.c:43
static void xwlib_bclst_init_node(struct xwlib_bclst_node *n)
初始化一个链表节点。
Definition bclst.h:240
signed long xwer_t
Definition type.h:554
static void xwos_sqlk_init(struct xwos_sqlk *sql)
XWOS API:初始化顺序锁
Definition seqlock.h:133
#define XWOS_UNUSED(x)
Definition standard.h:66
设备栈
Definition xwds.h:37
struct xwos_sqlk devlistlock
Definition xwds.h:39
struct xwlib_bclst_node devhead
Definition xwds.h:38
玄武设备栈:对象
玄武设备栈:顶级头文件
static void xwds_pm_report_devices_suspending(struct xwds *ds, xwer_t rc)
报告设备暂停操作异常
Definition xwds.c:58
static void xwds_pm_report_devices_resuming(struct xwds *ds, xwer_t rc)
报告设备继续操作异常
Definition xwds.c:81
玄武设备栈:电源管理框架