Skip to content

Instantly share code, notes, and snippets.

@kimhoki
kimhoki / AVLtree.c
Created June 16, 2015 11:26
[AVL] 리눅스 내에 AVL tree
#if 1
//
#include <stdio.h>
#include <stdlib.h>
typedef struct _node{
int data;
struct _node *left;
struct _node *right;
}NODE;
@kimhoki
kimhoki / getdents.MD
Created June 16, 2015 10:48
[Linux_File_System] getdents 함수를 이용한 #(물리 파일) 시스템 접속

#() <-- 확실 하지 않음.

@kimhoki
kimhoki / array.MD
Created June 16, 2015 10:45
[ array] 파일시스템의 버디 기법에 사용된 배열

파일시스템의 버디 기법에 사용된 배열 어래이 관련 내용

@kimhoki
kimhoki / rbtree.c
Created June 16, 2015 10:41
리눅스 RBtree
#if 1
#include <stdio.h>
#include <stdlib.h>
struct rb_node
{
unsigned long rb_parent_color;
struct rb_node *rb_right;
struct rb_node *rb_left;
};
@kimhoki
kimhoki / bit_field.c
Created June 16, 2015 10:35
그리고 리눅스 스케줄링에 사용된 비트 필드와 likely, unlikely
#include <stdio.h>
#include <string.h>
int ffs(int x)
{
int r = 1;
if(!x)
return 0;
if(!(x & 0xffff))
@kimhoki
kimhoki / 1.md
Last active August 29, 2015 14:23

코드 파일은 아래에 있습니다.

준비물

  • app_my_module.c
  • my_module.c
  • Makefile

코드 파일과 Makefile 파일을 작성 하시고 밑 내용대로 명령어를 실행 하시면 됩니다.

@kimhoki
kimhoki / 1.text
Last active August 29, 2015 14:23
06-16 char device module program
파일 시스템 fat
a1: http://ji007.tistory.com/entry/FAT32-File-System
a2: http://egaoneko.github.io/os/2015/05/24/linux-starter-guide-4.html
a3: http://cappleblog.co.kr/135
b1: http://snsmo.tistory.com/28
b2: https://www.linux.co.kr/home/lecture/index.php?cateNo=&secNo=&theNo=&leccode=10213