Lines Matching refs:flag
61 * flag set/clear/test wrappers
65 static inline void set_ti_thread_flag(struct thread_info *ti, int flag)
67 set_bit(flag, (unsigned long *)&ti->flags);
70 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag)
72 clear_bit(flag, (unsigned long *)&ti->flags);
75 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag)
77 return test_and_set_bit(flag, (unsigned long *)&ti->flags);
80 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag)
82 return test_and_clear_bit(flag, (unsigned long *)&ti->flags);
85 static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
87 return test_bit(flag, (unsigned long *)&ti->flags);
90 #define set_thread_flag(flag) \
91 set_ti_thread_flag(current_thread_info(), flag)
92 #define clear_thread_flag(flag) \
93 clear_ti_thread_flag(current_thread_info(), flag)
94 #define test_and_set_thread_flag(flag) \
95 test_and_set_ti_thread_flag(current_thread_info(), flag)
96 #define test_and_clear_thread_flag(flag) \
97 test_and_clear_ti_thread_flag(current_thread_info(), flag)
98 #define test_thread_flag(flag) \
99 test_ti_thread_flag(current_thread_info(), flag)
115 * will run before returning to user mode, to process the flag. For