calculating ring buffer size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,

While going through a few usb drivers code  , i observed that the
drivers maintain a ring buffer
which stores data coming from usb device in interrupt context .
Also these ring buffers is a  power of  2 size

i am looking for reasons how to compute the the max size of these ring
buffers , so that no overflow situation happens .
What factors should always be accounted while computing the max size
of these ring buffers .

Regards
Amit Nagal

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux