Got user space pullreq.

One idea. You add _one_ struct metric to kmetrics struct
with one additonal flag "more". Read from it fetches head of list of errors
and drops it. So, when reading metrics users space doing one
read gets the first element and indication that there are more.
If there are more we read at this offset until more cleared
or until we are tired.

Far from perfect, yet it is simple and efficient.

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to