How to count bytes read by device...

Hi!

I hope this is not so offtopic…it yes, but someone can help me, do it
in private then :slight_smile:

I’m very new to kernel driver programming. I’ve a “simple” task to write
a device driver which support only a few requests:

  • Open
  • Close
  • Read
  • Write
  • DeviceIOControl (just for monitoring the device)

The driver must be act as after someone opens that:
It must be wait for 120 characters received via the WRITE operation,
after this it have to discard any byte what is written to the device.
The driver then makes some calculation and prepares a 80 byte buffer
what can be READ from the device. After this, it is capable of getting
further WRITE requests…and everything starts over.

I guess it’s not too complicated, but it’s not so simple for me yet…

Thanks for advance for your help!

Regards,
Attila


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi!

I hope this is not so offtopic…it yes, but someone can help me, do it
in private then :slight_smile:

I’m very new to kernel driver programming. I’ve a “simple” task to write
a device driver which support only a few requests:

  • Open
  • Close
  • Read
  • Write
  • DeviceIOControl (just for monitoring the device)

The driver must be act as it follows after someone opens it:
It must be wait for 120 characters received via the WRITE operation,
after this it has to discard any data what is WRITTEN to the device. The
driver then makes some calculation and prepares a 80 byte buffer what
can be READ from the device. After this, it is capable of getting
further WRITE requests…and everything starts over.

I guess it’s not too complicated, but it’s not so simple for me yet…

Thanks for advance for your help!

Best Regards,
Attila


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com