Home | History | Annotate | Download | only in linux

Lines Matching refs:flag

26  * flag set/clear/test wrappers
30 static inline void set_ti_thread_flag(struct thread_info *ti, int flag)
32 set_bit(flag,&ti->flags);
35 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag)
37 clear_bit(flag,&ti->flags);
40 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag)
42 return test_and_set_bit(flag,&ti->flags);
45 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag)
47 return test_and_clear_bit(flag,&ti->flags);
50 static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
52 return test_bit(flag,&ti->flags);
55 #define set_thread_flag(flag) \
56 set_ti_thread_flag(current_thread_info(), flag)
57 #define clear_thread_flag(flag) \
58 clear_ti_thread_flag(current_thread_info(), flag)
59 #define test_and_set_thread_flag(flag) \
60 test_and_set_ti_thread_flag(current_thread_info(), flag)
61 #define test_and_clear_thread_flag(flag) \
62 test_and_clear_ti_thread_flag(current_thread_info(), flag)
63 #define test_thread_flag(flag) \
64 test_ti_thread_flag(current_thread_info(), flag)