All of lore.kernel.org
 help / color / mirror / Atom feed
* [Problem] about src/xen/include/public/io/ring.h
@ 2013-04-08  8:10 马磊
  2013-04-08 13:32 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 15+ messages in thread
From: 马磊 @ 2013-04-08  8:10 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com


[-- Attachment #1.1: Type: text/plain, Size: 376 bytes --]

Hi,
    there is a macro in io/ring.h as follows:

211#define RING_HAS_UNCONSUMED_REQUESTS(_r) ({
\                                         |
212    unsigned int req = (_r)->sring->req_prod - (_r)->req_cons;
 \
213    unsigned int rsp = RING_SIZE(_r) -
 \
214        ((_r)->req_cons - (_r)->rsp_prod_pvt);
 \
215    req < rsp ? req : rsp;
 \
216})

Anyone could explain this?

[-- Attachment #1.2: Type: text/html, Size: 864 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-04-15  2:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-08  8:10 [Problem] about src/xen/include/public/io/ring.h 马磊
2013-04-08 13:32 ` Konrad Rzeszutek Wilk
2013-04-09  3:05   ` 马磊
2013-04-10 13:15     ` Konrad Rzeszutek Wilk
2013-04-11  7:46       ` 马磊
2013-04-11 13:20         ` Konrad Rzeszutek Wilk
2013-04-12  2:21           ` 马磊
2013-04-12  7:49             ` Ian Campbell
2013-04-12 10:35               ` 马磊
2013-04-12 11:14                 ` Ian Campbell
2013-04-12 11:24                   ` 马磊
2013-04-12 13:45                     ` Konrad Rzeszutek Wilk
2013-04-15  2:52                       ` 马磊
2013-04-10  6:20   ` 马磊
2013-04-10 13:15     ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.