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

표준 형을 정의한다. More...

Collaboration diagram for 표준 형 정의:

Macros

#define __NORET   __attribute__((noreturn))
 종료(리턴)되지 않는 함수에 사용 More...
 
#define __PACKED   __attribute__((packed))
 
#define __UNUSED   __attribute__((unused))
 사용되지 않는 변수 또는 함수 선언시 사용 More...
 
#define container_of(ptr, type, member)
 cast a member of a structure out to the containing structure More...
 
#define NULL   (void*)0
 
#define offsetof(TYPE, MEMBER)   ((size_t) &((TYPE *)0)->MEMBER)
 특정 구조체에서 특정 멤버 변수의 위치를 얻는다 More...
 
#define prefetch(a)   (void)(a)
 CPU 캐시를 활용하여 데이터를 미리 읽어 둔다. More...
 
#define restrict   /* restrict */
 

Detailed Description

표준 형을 정의한다.

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

Macro Definition Documentation

#define __NORET   __attribute__((noreturn))

종료(리턴)되지 않는 함수에 사용

Definition at line 33 of file stddef.h.

struct fat_long_dirent __PACKED   __attribute__((packed))

Definition at line 23 of file stddef.h.

#define __UNUSED   __attribute__((unused))

사용되지 않는 변수 또는 함수 선언시 사용

Definition at line 28 of file stddef.h.

#define container_of (   ptr,
  type,
  member 
)
Value:
({ const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})

cast a member of a structure out to the containing structure

Parameters
[in]ptrthe pointer to the member.
[in]typethe type of the container struct this is embedded in.
[in]memberthe name of the member within the struct.
Returns
type type'd object

Definition at line 42 of file stddef.h.

Referenced by free().

#define NULL   (void*)0
#define offsetof (   TYPE,
  MEMBER 
)    ((size_t) &((TYPE *)0)->MEMBER)

특정 구조체에서 특정 멤버 변수의 위치를 얻는다

Definition at line 20 of file stddef.h.

#define prefetch (   a)    (void)(a)

CPU 캐시를 활용하여 데이터를 미리 읽어 둔다.

Definition at line 49 of file stddef.h.

#define restrict   /* restrict */

Definition at line 12 of file stddef.h.