calculate max number of bytes that can be read or written by using
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 14 Apr 2002 15:46:36 +0000 (15:46 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 14 Apr 2002 15:46:36 +0000 (15:46 +0000)
commit6454971074c08e5c643107e6aca493ce08f6f3bf
treea708e77b376a437a8daa20a3c1c28be077ada43a
parent660ac5590ef48f16a18e936d3252f17f8d1783d7
calculate max number of bytes that can be read or written by using
buf_int_ptr and buf_user_ptr to avoid any possible race with comedi_buf_put*().
comedi/comedi_fops.c