tcb-offsets.sym

来自「glibc 库, 不仅可以学习使用库函数,还可以学习函数的具体实现,是提高功力的」· SYM 代码 · 共 15 行

SYM
15
字号
#include <sysdep.h>#include <tls.h>RESULT			offsetof (struct pthread, result)TID			offsetof (struct pthread, tid)PID			offsetof (struct pthread, pid)CANCELHANDLING		offsetof (struct pthread, cancelhandling)CLEANUP_JMP_BUF		offsetof (struct pthread, cleanup_jmp_buf)CLEANUP			offsetof (struct pthread, cleanup)CLEANUP_PREV		offsetof (struct _pthread_cleanup_buffer, __prev)MUTEX_FUTEX		offsetof (pthread_mutex_t, __data.__lock)MULTIPLE_THREADS_OFFSET	offsetof (tcbhead_t, multiple_threads)POINTER_GUARD		offsetof (tcbhead_t, pointer_guard)VGETCPU_CACHE_OFFSET	offsetof (tcbhead_t, vgetcpu_cache)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?