ioctl에서 unsigned long arg 활용하기
이번 4-1학기동안 임베디드시스템소프트웨어라는 수업을 듣게 되었다. 하지만 처음 해보는 임베디드, 커널 프로그래밍은 꽤나 진입 장벽이 높았다. 그래도 같이 수업 듣는 어떤 은인분을 통해 과제에서 막혔던 부분을 손쉽게 해결할 수 있었다 (감사합니다ㅠㅠㅠ 기프티콘 하나쯤은 받아 주시지...) 기존 코드는 static long ipc_ioctl(struct file *file, unsigned int cmd, unsigned long arg){ struct param *user_buf; int ret; user_buf = (struct param*)arg switch (cmd){ case READ: // recv : read ret = ku_ipc_read(user_buf->qid , user_buf->msg..
2020.04.30