분류 전체보기74 [linux] find_first_zero_bit() 분석 find_first_zero_bit(unsigned long *addr, unsigned long size) 함수는 addr 부터 시작해서 size(size 의 단위는 byte 가 아니라, bit 단위이다) 만큼 검색하면서 첫번째 cleared bit 을 찾는 함수이다. 함수가 정의한 대로 사용하면 그만이지만, 그 안에서 어떻게 구현했는지 궁금해졌다. 이 함수는 다음 파일에서 config 에 따라 다음과 같이 정의된다. 즉 CONFIG_GENERIC_FIND_FIRST_BIT 이 정의되어 있는 경우 _find_first_zero_bit_le() 함수가 호출되고, 정의되어 있지 않으면, find_next_bit() 이 호출된다. 각각에 대해서 알아보자 #ifdef CONFIG_GENERIC_FIND_FIR.. 2013. 5. 14. git 명령어 모음 git 의 일반적인 명령어들은 다른 사이트를 참조하면 되고, 여기는 git 을 사용하면서 내가 필요에 의해서 사용하거나 찾아보았던 명령어를 위주로 정리하려고 한다. 나중에 시간이 되면 각각의 git 명령에 대해서 좀 자세히 알아보아야 겠다. 1. git alias 참고 : https://git.wiki.kernel.org/index.php/Aliases#Aliases_with_arguments 위 사이트를 참고하면 alias 의 다양한 사용법을 확인할 수 있다. 간단하게 $HOME/.gitconfig 파일을 직접 수정하거나, git config --global alias. 형식으로 alias 를 만들 수 있다. 우선 git config 명령을 사용해보자. 아래 명령은 git checkout 을 git c.. 2013. 4. 9. [Thunderbird / Firefox] 에러메시지 : Could not initialize the application's security component 썬더버드를 사용하고 있는데, 어느 날 갑자기 실행하는 순간, 다음과 같은 에러메시지가 팝업창으로 떴다. Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you contin.. 2013. 3. 15. sparse : kernel static analysis tool 커널 코드를 보다 보니 이상한 문법의 코드가 있어서 확인해보았다. 203 static int expand_fdtable(struct files_struct *files, int nr) 204 __releases(files->file_lock) 205 __acquires(files->file_lock) 206 { expand_fdtable() 함수를 보면, 파라미터 정의 다음 줄에 __releases / __acquires 라는 함수 비슷한 것이 정의되어있다. 이를 찾아보면 include/linux/compiler.h 파일에 다음과 같이 정의되어 있다. 6 #ifdef __CHECKER__ 7 # define __user __attribute__((noderef, address_space(1))) 8 # .. 2013. 2. 12. 이전 1 ··· 5 6 7 8 9 10 11 ··· 19 다음