리눅스/커널2012. 7. 1. 09:23

module_init() 매크로는 모듈형태로 컴파일시 module insertion time에 불린다.

만약 모듈형태로 컴파일 되지 않았으면, module_init()은 __initcall()과 같은 동작을 하는데 이는 boot time시에 불린다.


__initcall()은 다음과 같이 정의되어 있다.


#define __initcall(fn) \
static initcall_t __initcall_##fn __init_call = fn
#define __init_call __attribute__ ((unused,__section__ ("function_ptrs")))
#define module_init(x) __initcall(x);


'리눅스 > 커널' 카테고리의 다른 글

리눅스커널 timestamp 찍는 법  (0) 2012.07.18
__user  (0) 2012.07.01
리눅스 커널 분석 시 아키텍쳐별 tag 및 cscope생성  (0) 2012.04.16
Virtual Linux Manager 정리 1  (0) 2012.03.18
GCC, typeof  (0) 2012.02.23
Posted by code cat
samba 로그인 정보를 지우기 위해서는 다음과 같이 하면 된다

'net use /delete //192.168...'

현재 저장되어 있는 정보를 보려면 다음과 같이 하면 된다.

'net use'

iPhone 에서 작성된 글입니다.
Posted by code cat

가끔 svn에서 다음과 같이 충돌이 난다고 한다.


"svn: file_name remains in conflict"


이럴 땐, 당황하지 말고,


svn resolve --accept working file_name


하면 된다.   이래도 좀 더 꼬여서 안 될때가 있는데 그 때는 상위 디렉터리로 이동 뒤,


svn resolve --accept working -R .


하면 된다.


Posted by code cat
IT2012. 6. 12. 11:12

출처: engadget.com





 

 15 인치 맥북프로(2011)

15 인치 맥북프로(2012) 

레티나디스플레이 맥북프로(2012) 

 규격

 14.35 x 9.82 x 0.95 inches

 14.35 x 9.82 x 0.95 inches

 14.13 x 9.73 x 0.71 inches

 해상도

 1440 x 900

 1440 x 900

 2880 x 1800

 cpu

 Up to 2.4GHz quad-core Core i7 (Sandy Bridge)

 Up to 2.7GHz quad-core Core i7 (Ivy Bridge)

 Up to 2.7GHz quad-core Core i7 (Ivy Bridge)

 그래픽

 Intel HD Graphics 3000 + AMD Radeon HD 6750M / AMD Radeon HD 6770M

 Intel HD Graphics 4000 / NVIDIA Kepler GeForce GT 650M with up to 1GB of memory

 Intel HD Graphics 4000 / NVIDIA Kepler GeForce GT 650M with up to 1GB of memory

 메모리

 Up to 8GB

 Up to 8GB

 Up to 16GB

 저장용량

Up to 750GB

Up to 1TB or a 512GB SSD

Up to a 768GB SSD

포트지원

   Thunderbolt, FireWire 800, two USB 2.0, SD card slot, MagSafe power port, Kensington lock slot, audio line in, audio line out

   Two Thunderbolt, USB 3.0, FireWire 800, SD card slot, new MagSafe2 connector, Kensington lock slot, audio line in, audio line out

   Two Thunderbolt, HDMI, two USB 3.0, SD card slot, new MagSafe2 connector, Kensington lock slot, headphone port

 배터리수명

  7 hours

 7 hours 

7 hours

 무게

  5.6 pounds

 5.6 pounds 

4.46 pounds 

 가격

 $1,799 (2GHz Core i7, 500GB hard drive) / $2,199 (2.2GHz Core i7, 750GB hard drive)

 $1,799 (2.3GHz Core i7, 500GB hard drive / $2,199 (2.6GHz, 750GB hard drive)

 $2,199 (2.3GHz Core i7, 256GB SSD) / $2,799 (2.6GHz, 512GB SSD)


'IT' 카테고리의 다른 글

iPad with Retina display 스펙  (1) 2012.10.24
iPad 미니 스펙  (0) 2012.10.24
iOS 6 추가 된 기능들  (0) 2012.09.16
아이폰 5 스펙  (0) 2012.09.14
iPhone 5 (아이폰 5) vs 아이폰 4s vs 아이폰4  (0) 2012.09.14
Posted by code cat

출처: http://stackoverflow.com/questions/2966409/cpio-vs-tar-and-cp

 

cpio가 tar보다 나은 점은 뭘까?

 

우선 cpio는 하드링크를 보존한다.  또한 cpio는 파일이름길이에 대한 제한이 없다. timestamp 또한 보존한다. 

스크립트를 쓸 때 파일들에 대한 통제가 편리하다는 점도 있다. 


find . -type f -name '*.sh' -print | cpio -o | gzip >sh.cpio.gz

참고로 find를 써서 많은 파일들의 리스트를 넘기려고 하면 command-line length가 overrun될 가능성이 있다.  그래서 이럴 경우, 중간 파일을 사용해 주는게 좋다.

cp에 대해선 다음에 더 알아보자.

Posted by code cat