2012년 1월 30일 월요일

커널에서 물리적 블록디바이스에 직접 데이터 I/O 작업하기


ll_rw_block 를 이용해서 어떻게 I/O 작업을 하는지 정리한 내용
http://kldp.org/node/128977

하지만, ll_rw_block 은 deprecated 로 마크되었으므로 아래 방법이 앞으로 유용할 듯.
-------------------------
최근 커널의 kernel/power/ 에서 block_io.c 와 swap.c 를 보시면 간단한 예제가 있습니다.
이 두 파일은 suspend-to-disk 때 ram 의 내용을 swap 파티션으로 백업하는 기능을 구현하고 있습니다. submit_xx 계열의 다른 함수들에 대한 예제는 커널 소스들을 뒤져보시면 되겠고요.
-------------------------

정진

법륜스님의 메시지 [2012-01-28]

손님이 왔을 때는
아주 반갑게 "어서 오세요." 하면서
맞이하는 데 깨어 있어야 하는 거예요.
다른 데 쳐다보고 손님이 오는지 가는지도 모르는 것은
깨어 있는 게 아니에요.
음식을 만들 때는 정성들여 만드는 데 깨어 있어야 합니다.
음식을 차려서 손님에게 갖다 줄 때도
음식을 갖다 주는 상태에 깨어 있어야 해요.
자기자신의 일거수일투족에 깨어 있는것,
바로 그것이 정진입니다
장사를 하면 장사하는 그 순간순간에 깨어 있는 것이 정진이며
동시에 그것이 사업을 잘하는 것이지요.
정진하는 것하고
사업하는 게 별개가 아니에요.

2012년 1월 15일 일요일

Linux block device

This is for study of Linux block device.


Useful web sites:





2012년 1월 14일 토요일

First to one hundredth


01st first
02nd second
03rd third



04th fourth
05th fifth
06th sixth
07th seventh
08th eighth
09th ninth
10th tenth
11th Eleventh
12th Twelfth
13th Thirteenth
14th Fourteenth
15th Fifteenth
16th Sixteenth
17th Seventeenth
18th Eighteenth
19th Nineteenth
20th Twentieth



21st twenty-first
22nd twenty-second 
23rd twenty-third



24th twenty-fourth
25th twenty-fifth
26th twenty-sixth
27th twenty-seventh
28th twenty-eighth
29th twenty-ninth
30th thirtieth



31st thirty-first
32nd thirty-second
33rd thirty-third



34th thirty-fourth
35th thirty-fifth
36th thirty-sixth
37th thirty-seventh
38th thirty-eighth
39th thirty-ninth
40th fortieth



41st forty-first
42nd forty-second
43rd forty-third



44th forty-fourth
45th forty-fifth
46th forty-sixth
47th forty-seventh
48th forty-eighth
49th forty-ninth
50th fiftieth



51st fifty-first
52nd fifty-second
53rd fifty-third



54th fifty-fourth
55th fifty-fifth
56th fifty-sixth
57th fifty-seventh
58th fifty-eighth
59th fifty-ninth
60th sixtieth



61st sixty-first
62nd sixty-second
63rd sixty-third



64th sixty-fourth
65th sixty-fifth
66th sixty-sixth
67th sixty-seventh
68th sixty-eighth
69th sixty-ninth
70th seventieth



71st seventy-first
72nd seventy-second
73rd seventy-third



74th seventy-fourth
75th seventy-fifth
76th seventy-sixth
77th seventy-seventh
78th seventy-eighth
79th seventy-ninth
80th eightieth



81st eighty-first
82nd eighty-second
83rd eighty-third



84th eighty-fourth
85th eighty-fifth
86th eighty-sixth
87th eighty-seventh
88th eighty-eighth
89th eighty-ninth
90th ninetieth



91st ninety-first
92nd ninety-second
93rd ninety-third



94th ninety-fourth
95th ninety-fifth
96th ninety-sixth
97th ninety-seventh
98th ninety-eighth
99th ninety-ninth
100th one hundredth