https://github.com/torvalds/linux
Raw File
Tip revision: 33cc938e65a98f1d29d0a18403dbbee050dcad9a authored by Linus Torvalds on 03 December 2023, 09:52:56 UTC
Linux 6.7-rc4
Tip revision: 33cc938
current.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_GENERIC_CURRENT_H
#define __ASM_GENERIC_CURRENT_H

#ifndef __ASSEMBLY__
#include <linux/thread_info.h>

#define get_current() (current_thread_info()->task)
#define current get_current()
#endif

#endif /* __ASM_GENERIC_CURRENT_H */
back to top