Hi to everyone,

I'm having trouble trying to meet the requirements of my lab class in Operating Systems, so I turned here for help. We're in the Linux kernel, and programming in kernel space. we were instructed to create threads that share a single resource: buffers that contain the current position of the mouse pointer. I have no trouble creating the threads and using spinlocks to lock them when they are working in the critical space.. i just can't figure out how to read the mouse pointer position for the buffers. I read some sources on the net involving the use of getch, getmouse, etc. but I seem to have trouble using them.

Any help would be greatly appreciated. Thanks.