*参照元 [#yc4447c2] #backlinks *説明 [#fd78fcc2] -パス: [[linux-2.6.33/include/linux/sched.h]] -FIXME: これは何? --説明 **引数 [#hfd59cba] -long state_value -- **返り値 [#n9071516] -なし **参考 [#td50bc83] *実装 [#g6d9d0bf] /* * set_current_state() includes a barrier so that the write of current->state * is correctly serialised wrt the caller's subsequent test of whether to * actually sleep: * * set_current_state(TASK_UNINTERRUPTIBLE); * if (do_i_need_to_sleep()) * schedule(); * * If the caller does not need such serialisation then use __set_current_state() */ #define __set_current_state(state_value) \ do { current->state = (state_value); } while (0) (...中略...) #define set_current_state(state_value) \ set_mb(current->state, (state_value)) - --[[linux-2.6.33/current(global)]] - --[[linux-2.6.33/set_mb()]] *コメント [#y08dfba6]