QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1473|回复: 3

能否在IDE驱动中判断现在是处于系统初始化过程中还是处于启动

[复制链接]
发表于 2003-4-17 11:43:11 | 显示全部楼层 |阅读模式
我想在IDE驱动中读写函数中判断是处于系统初始化过程中的读写还是处于启动完毕响应用户请求的读写,可能吗?
发表于 2003-4-17 21:52:58 | 显示全部楼层
i don't think so. ide driver does not provide such extra information. if u really want, can u use a global atomic_t type flag, set to 1 in init and set to 0 after init. and judge in u ide driver code?

a little crazy.
回复

使用道具 举报

 楼主| 发表于 2003-4-18 09:33:02 | 显示全部楼层
这个global atomic_t type flag该放在何处定义呢?
回复

使用道具 举报

发表于 2003-4-18 09:36:36 | 显示全部楼层
i guess it should be defined in init/main.c. and in ide.c use extern to reference it.
good luck.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-28 02:07 , Processed in 0.039431 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表