Skip to content

Instantly share code, notes, and snippets.

@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
@kimhoki
kimhoki / 1.md
Last active August 29, 2015 14:23

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

준비물

  • app_my_module.c
  • my_module.c
  • Makefile

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

@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 / 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 / array.MD
Created June 16, 2015 10:45
[ array] 파일시스템의 버디 기법에 사용된 배열

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

@kimhoki
kimhoki / getdents.MD
Created June 16, 2015 10:48
[Linux_File_System] getdents 함수를 이용한 #(물리 파일) 시스템 접속

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

@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 / cc.c
Created June 16, 2015 11:28
[미완성]_myls
//*********************************************************************
// My ls Ver 0.1.0
//2007 Made By Paek Jae-Dong
//E-mail: pjd@kw.ac.kr
//Blog: rabe.egloos.com
//*********************************************************************
// My ls Ver 0.2.1
//2015 Made By kimhoki
//E-mail: exampleohki@gmail.com
@kimhoki
kimhoki / static.md
Last active August 29, 2015 14:23
static과 외부 변수

static과 외부 변수

일반적인 aaa.c파일 내에서 외부 참조가 어떻게 실행이 되는지 알아보자.

aaa.c

#include <stdio.h>
@kimhoki
kimhoki / module_param.md
Last active December 6, 2020 16:56
[Device Driver] param , PARM, 커널 모듈 매개 변수 매크로

module_param_named, 커널 모듈 매개 변수 매크로

모듈 매개 변수 지정 방법:

#include:

#include <linux/moduleparam.h>