On Mon 11-07-11 08:49:40, Nikiforov Alex wrote: > Put the pid and flags into iovec structure for processing via > writev/readv according to manual. Vector read/write syscall process > multiple iovec buffers in array order (man 2 writev). It's reduce the > number of syscalls and make code more clear (less read/write if pairs) > > Signed-off-by: Alex Nikiforov <a.nikifo...@samsung.com>
Looks good to me. Reviewed-by: Michal Hocko <mho...@suse.cz> > --- > src/api.c | 11 ++++++++--- > src/daemon/cgrulesengd.c | 14 +++++++++----- > 2 files changed, 17 insertions(+), 8 deletions(-) > > diff --git a/src/api.c b/src/api.c > index d5022c2..8c6dd1e 100644 > --- a/src/api.c > +++ b/src/api.c > @@ -43,6 +43,7 @@ > #include <sys/socket.h> > #include <fcntl.h> > #include <sys/syscall.h> > +#include <sys/uio.h> > #include <unistd.h> > #include <fts.h> > #include <ctype.h> Something strange with formating? Email client? [...] -- Michal Hocko SUSE Labs SUSE LINUX s.r.o. Lihovarska 1060/12 190 00 Praha 9 Czech Republic ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel