1GET_THREAD_AREA(2)         Linux Programmer's Manual        GET_THREAD_AREA(2)
2
3
4

NAME

6       get_thread_area - Get a Thread Local Storage (TLS) area
7

SYNOPSIS

9       #include <linux/unistd.h>
10       #include <asm/ldt.h>
11
12       int get_thread_area(struct user_desc *u_info);
13
14

DESCRIPTION

16       get_thread_area() returns an entry in the current thread's Thread Local
17       Storage (TLS) array.  The index of the entry corresponds to  the  value
18       of  u_info->entry_number,  passed  in  by the user.  If the value is in
19       bounds, get_thread_info copies the corresponding  TLS  entry  into  the
20       area pointed to by u_info.
21
22

RETURN VALUE

24       get_thread_area()  returns  0 on success.  Otherwise, it returns -1 and
25       sets errno appropriately.
26
27

ERRORS

29       EFAULT u_info is an invalid pointer.
30
31       EINVAL u_info->entry_number is out of bounds.
32

CONFORMING TO

34       get_thread_area() is Linux specific and should not be used in  programs
35       that are intended to be portable.
36
37

AVAILABILITY

39       A version of get_thread_area() first appeared in Linux 2.5.32.
40
41

SEE ALSO

43       modify_ldt(2), set_thread_area(2)
44
45
46
47Linux 2.5.32                      2003-02-21                GET_THREAD_AREA(2)
Impressum