|
nckernel
0.1
|
오브젝트의 생성/소멸, 복사, 링크등 기본적인 연산과 생성/소멸을 구현한다. More...
Data Structures | |
| struct | object |
| struct | object_ops |
Macros | |
| #define | object_get(ptr, type, member) container_of(ptr, type, member) |
Functions | |
| int | object_copy (struct object *dest, struct object *src) |
| 객체를 복사한다. More... | |
| int | object_create (struct object *object, void *data) |
| 객체를 생성한다. 등록된 생성자를 호출한다. More... | |
| int | object_destroy (struct object *object) |
| 객체를 소멸 시킨다. 등록된 소멸자를 호출한다. More... | |
| int | object_init (struct object *object, struct object_ops *ops) |
| 객체 연산자들을 초기화 한다. More... | |
| struct object * | object_link (struct object *object) |
| 객체를 참조하는 새로운 객체 연결자를 만든다. 객체에 대한 참조 횟수를 증가시킨다. More... | |
오브젝트의 생성/소멸, 복사, 링크등 기본적인 연산과 생성/소멸을 구현한다.
| #define object_get | ( | ptr, | |
| type, | |||
| member | |||
| ) | container_of(ptr, type, member) |
객체를 복사한다.
| [in] | dest | 객체를 복사할 대상체 |
| [in] | src | 복사할 객체 |
Definition at line 58 of file object.c.
References object_ops::copy, EINVAL, memcpy(), ops, refcnt, and intr_info::ret.

| int object_create | ( | struct object * | object, |
| void * | data | ||
| ) |
객체를 생성한다. 등록된 생성자를 호출한다.
| [in] | object | 초기화 할 객체 포인터 |
| [in] | data | 초기화시 콜백 함수에 전달 할 사용자 데이터 |
Definition at line 17 of file object.c.
References object_ops::create, EINVAL, ops, refcnt, and intr_info::ret.
Referenced by open(), and thread_create().

| int object_destroy | ( | struct object * | object) |
객체를 소멸 시킨다. 등록된 소멸자를 호출한다.
| [in] | object |
Definition at line 35 of file object.c.
References object_ops::destroy, EINVAL, ops, refcnt, and intr_info::ret.
Referenced by close(), and pthread_cancel().

| int object_init | ( | struct object * | object, |
| struct object_ops * | ops | ||
| ) |
객체 연산자들을 초기화 한다.
| [in] | object | |
| [in] | ops |
Definition at line 9 of file object.c.
Referenced by thread_create().


1.8.4