My Project
Loading...
Searching...
No Matches
kernel_smartptr.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <semaphore.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdarg.h>
#include <dlfcn.h>
#include "kernel_engine.h"
#include "../src/ename.c.inc"

Go to the source code of this file.

Classes

struct  SmartPtr
 스마트 포인터 구조체 More...
 
struct  NetworkInfo
 네트워크 정보를 저장하는 구조체 More...
 

Macros

#define KERNEL_SMARTPTR_H
 
#define NUM_THREADS   3
 
#define MAX_STRING_SIZE   100
 
#define CREATE_SMART_PTR(type, ...)
 

Typedefs

typedef struct SmartPtr SmartPtr
 
typedef struct NetworkInfo NetworkInfo
 네트워크 정보를 저장하는 구조체
 

Functions

NetworkInfo get_local_network_info ()
 로컬 네트워크 정보를 가져오는 함수
 
SmartPtr create_smart_ptr (size_t size,...)
 스마트 포인터를 생성하는 함수 (가변 인자 사용)
 

Macro Definition Documentation

◆ CREATE_SMART_PTR

#define CREATE_SMART_PTR ( type,
... )
Value:
create_smart_ptr(sizeof(type), __VA_ARGS__)
SmartPtr create_smart_ptr(size_t size,...)
스마트 포인터를 생성하는 함수 (가변 인자 사용)

Definition at line 30 of file kernel_smartptr.h.

◆ KERNEL_SMARTPTR_H

#define KERNEL_SMARTPTR_H

Definition at line 3 of file kernel_smartptr.h.

◆ MAX_STRING_SIZE

#define MAX_STRING_SIZE   100

Definition at line 27 of file kernel_smartptr.h.

◆ NUM_THREADS

#define NUM_THREADS   3

Definition at line 26 of file kernel_smartptr.h.

Typedef Documentation

◆ NetworkInfo

typedef struct NetworkInfo NetworkInfo

네트워크 정보를 저장하는 구조체

◆ SmartPtr

typedef struct SmartPtr SmartPtr

Definition at line 29 of file kernel_smartptr.h.

Function Documentation

◆ create_smart_ptr()

SmartPtr create_smart_ptr ( size_t size,
... )

스마트 포인터를 생성하는 함수 (가변 인자 사용)

Parameters
size할당할 메모리 크기
...가변 인자 리스트 (초기값)
Returns
SmartPtr 스마트 포인터 구조체

Definition at line 94 of file kernel_smartptr.h.

◆ get_local_network_info()

NetworkInfo get_local_network_info ( )

로컬 네트워크 정보를 가져오는 함수

Returns
NetworkInfo 로컬 네트워크 정보가 저장된 구조체

Definition at line 63 of file kernel_smartptr.h.