gxqing 发表于 2003-4-17 11:43:11

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

我想在IDE驱动中读写函数中判断是处于系统初始化过程中的读写还是处于启动完毕响应用户请求的读写,可能吗?

Dragonfly 发表于 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.

gxqing 发表于 2003-4-18 09:33:02

这个global atomic_t type flag该放在何处定义呢?

Dragonfly 发表于 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.
页: [1]
查看完整版本: 能否在IDE驱动中判断现在是处于系统初始化过程中还是处于启动