函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:include\linux\thread_info.h Create Date:2022-07-27 06:39:12
首页 Copyright©Brick

255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
#define arch_setup_new_exec arch_setup_new_exec
#endif  /* !__ASSEMBLY__ */
 
#endif /* _ASM_X86_THREAD_INFO_H */
 
#ifdef __KERNEL__
 
#ifndef THREAD_ALIGN
#define THREAD_ALIGN    THREAD_SIZE
#endif
 
#define THREADINFO_GFP      (GFP_KERNEL_ACCOUNT | __GFP_ZERO)
 
/*
 * flag set/clear/test wrappers
 * - pass TIF_xxxx constants to these functions
 */
 
static inline void set_ti_thread_flag(struct thread_info *ti, int flag)
{
    set_bit(flag, (unsigned long *)&ti->flags);
}