nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Files | Data Structures | Macros | Functions
Thread management

쓰레드를 위한 구조체 선언 및 오퍼레이션 정의 More...

Files

file  thread.c
 쓰레드의 현재 상태를 설정한다.
 
file  thread.c
 쓰레드의 현재 상태를 설정한다.
 
file  thread.c
 쓰레드의 현재 상태를 설정한다.
 
file  thread.c
 쓰레드의 현재 상태를 설정한다.
 
file  thread.c
 쓰레드의 현재 상태를 설정한다.
 
file  thread.c
 쓰레드의 현재 상태를 설정한다.
 

Data Structures

struct  file
 
struct  file_object_info
 파일 객체를 생성할 때, object_create 시 전달 된 인자 정보들을 표현한다. More...
 
struct  local_tcb
 이 자료구조는 Stack 으로 사용될 메모리 영역의 제일 처음 부분에 저장된다. More...
 
struct  thread
 쓰레드를 위한 구조체 정의 More...
 
struct  thread_attr
 쓰레드의 속성 정보를 가진다. More...
 
struct  thread_file_ctx
 

Macros

#define MAX_ENTRY   256
 
#define THREAD_TAG   "ncthread"
 
#define THREAD_TAGLEN   9
 

Functions

int thread_create (struct thread *tcb, struct thread_attr *attr)
 
void * thread_get_arch_data (struct thread *tcb)
 
unsigned long thread_get_stack_pointer (struct thread *tcb)
 
int thread_get_status (struct thread *tcb)
 
FILEthread_get_stderr (void)
 현재 쓰레드의 표준 에러 출력을 가져 온다. More...
 
FILEthread_get_stdin (void)
 현재 쓰레드의 표준 입력을 가져온다. return FILE * More...
 
FILEthread_get_stdout (void)
 현재 쓰레드의 표준 출력을 가져온다. More...
 
void * thread_get_user_data (struct thread *tcb)
 
void thread_set_status (struct thread *tcb, int status)
 

Detailed Description

쓰레드를 위한 구조체 선언 및 오퍼레이션 정의

Author
Sung-jae Park nices.nosp@m.j@ni.nosp@m.cesj..nosp@m.com
Date
2011-12-01

Macro Definition Documentation

#define MAX_ENTRY   256

Definition at line 11 of file thread.h.

Referenced by open().

#define THREAD_TAG   "ncthread"

Definition at line 12 of file thread.h.

Referenced by pthread_self().

#define THREAD_TAGLEN   9

Definition at line 13 of file thread.h.

Function Documentation

int thread_create ( struct thread tcb,
struct thread_attr attr 
)

Definition at line 670 of file thread.c.

References object_ops::create, object, object_create(), and object_init().

Referenced by pthread_create(), and pthread_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void* thread_get_arch_data ( struct thread tcb)

Definition at line 717 of file thread.c.

References arch_data, and assert.

unsigned long thread_get_stack_pointer ( struct thread tcb)

Definition at line 705 of file thread.c.

References thread_attr::addr, assert, attr, thread_attr::size, and thread_attr::stack.

int thread_get_status ( struct thread tcb)

Definition at line 699 of file thread.c.

References assert, and status.

FILE* thread_get_stderr ( void  )

현재 쓰레드의 표준 에러 출력을 가져 온다.

Returns
FILE *

Definition at line 68 of file thread.c.

References file_ctx, NULL, pthread_self(), STDERR_FILENO, and thread_file_ctx::table.

Here is the call graph for this function:

FILE* thread_get_stdin ( void  )

현재 쓰레드의 표준 입력을 가져온다. return FILE *

Definition at line 52 of file thread.c.

References file_ctx, NULL, pthread_self(), STDIN_FILENO, and thread_file_ctx::table.

Here is the call graph for this function:

FILE* thread_get_stdout ( void  )

현재 쓰레드의 표준 출력을 가져온다.

Returns
FILE *

Definition at line 84 of file thread.c.

References file_ctx, NULL, pthread_self(), STDOUT_FILENO, and thread_file_ctx::table.

Here is the call graph for this function:

void* thread_get_user_data ( struct thread tcb)

Definition at line 723 of file thread.c.

References assert, and user_data.

void thread_set_status ( struct thread tcb,
int  status 
)

Definition at line 693 of file thread.c.

References assert, and status.

Referenced by pthread_create().

Here is the caller graph for this function: