LINUX

포스트: 477|조회수: 0|TERM
Items

Posts

477 posts

[라즈베리파이] 프로세스: 커널 스레드는 어떻게 생성하나?

Guillermo Austin Kim|2019년 1월 13일

이번에는 커널 스레드 생성 요청과 커널 스레드를 생성하는 코드 흐름을 살펴봅시다. 커널 스레드를 생성하려면 다음과 같이 kthread_create() 함수를 호출해야 합니다.1 #define kthread_create(threadfn, data, namefmt, arg...) \2 kthread_create_on_node(threadfn, data, NUMA_NO_NODE, namefmt, ##arg)34 struct task_struct *kthread_create_on_node(int (*threadfn)(void *data),5 void *data, int node,6 const char namefmt[],7 ...) 먼저 이 함수에 전달하는 인자부터 살펴봅시다.

[Linux][Kernel] Check process in Linux system

Guillermo Austin Kim|2019년 1월 9일

In order to be able to survive as competitive Linux system developers(DevOps for device drivers) for a long time, you need to know the Linux kernel better. However, the Linux kernel is huge, and its content depth is a difficult technical area to grasp in the short term. I started the Linux kernel with the question "What is a process?" I saw a lot of words like the Bible or blasphemy. Unfortunately

리눅스 민트에서 NFS 서버 설정

반달가면|2019년 1월 7일

리눅스 민트에서 NFS(Network File System, 네트워크 파일 시스템) 서버 설정 절차다. 리눅스 민트가 우분투 계열 배포판이므로, 데비안/우분투 계열 배포판은 다 비슷할 것이다. 우선 nfs-kernel-server 패키지를 설치하자. 터미널창에서 아래와 같이 작업 # S/W 저장소 정보 갱신 sudo apt-get update # nfs-kernel-server 설치 sudo apt-get install nfs-kernel-server NFS로 공유할 디렉토리를 만들자. 여기서는 /var/nfs_exports로 했다. 접근 권한은 별도로 설정하므로 디렉토리 권한은 모두 접근 가능한 777로 설정. # 디렉토리 생성(/var 디렉토리 하위이므로 root 권한 필요

sshpass - ssh 자동접속

반달가면|2019년 1월 3일

예전에 expect를 이용해서 ssh 자동접속하는 방법을 정리한 적이 있는데(여기로), ssh 접속후에 실행할 명령이 한줄 짜리라면 expect로 복잡하게 스크립트를 만드는 것보다 sshpass를 사용하는 것이 더 편리하다. 우선 sshpass 패키지를 설치한다. 데비안/우분투 계열 기준으로 아래와 같이 작업. # S/W 저장소 정보 갱신 sudo apt-get update # sshpass 패키지 설치 sudo apt-get install sshpass 사용 형식은 대략 아래와 같다. 암호는 -p 옵션으로 지정하면 접속할 때 자동으로 입력된다. -p와 접속암호 문자열 사이에 공백이 없음에 유의. sshpass -p'접속암호' ssh 계정@서버주소 예를 들어 server.