能否在IDE驱动中判断现在是处于系统初始化过程中还是处于启动
我想在IDE驱动中读写函数中判断是处于系统初始化过程中的读写还是处于启动完毕响应用户请求的读写,可能吗? 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. 这个global atomic_t type flag该放在何处定义呢? i guess it should be defined in init/main.c. and in ide.c use extern to reference it.
good luck.
页:
[1]