how to call and handle callback function on read() system call in c-Collection of common programming errors

I want to call one callback function which is going to be executed when any operation is occurred on data which is filled runtime from hardware at any time.

So, Is there any way about how to use callback feature which can be used when any data come into data buffer when i push the hardware trigger button.?

SO, The callback function execution is totally dependent on the hardware trigger which depends on user.

Please let me know if this is possible in c.