sys_set_thread_area  [arch/um/sys-i386/tls.c]


Sets an entry in the current thread's Thread Local Storage (TLS) array.

Arguments

eax 243
ebx Pointer to properly initialized user_desc structure:
struc user_desc
{
entry_number rd 1
base_addr    rd 1
limit        rd 1
bitfield     rd 1
             ; seg_32bit :1
             ; contents :2
             ; read_exec_only :1
             ; limit_in_pages :1
             ; seg_not_present :1
             ; useable :1
}

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EINVAL user_desc.entry_number is out of bounds.
-EFAULT ebx is an invalid pointer.
-ESRCH A free TLS entry could not be located.

Remarks

n/a

Compatibility

n/a