mz_test Implementation Specification

Personal Computer/misc 2005. 6. 15. 17:27 posted by tolkien
1. mz_tst_t ("입력"을 저장하는 buffer)
a. id : key_input? ts_input?
b. buf[] : 실제 data를 저장 (key는 scancode, pressed. ts는 x,y,pressed)
c. jiffies : 각 "입력"이 발생한 시각

2. 기록
a. key는 handle_scancode, ts는 wm9705_ts_put_xy에서 "입력"을 가로챈다
b. mzt_put_queue(id, buf) or mzt_put_queue(mz_tst_t)
c. read()는 한번에 한 "입력"씩 application에 보내자.
d. poll()은 buffer가 채워지면 바로 return, 그렇다면 mzt_put_queue에서 wake_up(wait_queue)
e. 별도의 ioctl()을 쓰지말고, open(..., O_RDONLY)하는 순간 recoding start!!!

3. 재현
a. open(..., O_WRONLY)하고나서 처음 write()할때 "재현"시작
b. 그러면 한번에 여러번 data를 받게 해야하나... @.@
c. mod_timer(&mzt_timer, jiffies + 현재_입력.jiffies - 이전_입력.jiffies)
d. key는 handle_scancode()를 이용해서 강제로 넣고,
e. ts는 wm9705_ts_put_buffer()랑 비슷한 놈을 만들어야하나...