• Cyrill Gorcunov's avatar
    parasite: Refactor code to follow calling convention · 4b1f8d08
    Cyrill Gorcunov authored
    It happened some routines in parasite service code
    were not following calling convention so I fixed the
    callers and added a comment about adding new code here.
    
    At the same time the 3 error code madness is dropped
    as being requested by Pavel -- now we return one error
    code only.
    
    The PARASITE_ERR_ codes were dropped as well due to
    become redundant.
    
    The status of parasite service routine is set via
    SET_PARASITE_RET helper. In case if there is no error --
    just return 0. The calling code should not expect to
    find anything sane in parasite_status_t because parasite
    code might not touch it at all.
    
    Same time, due to this convention the parasite's
    dump_socket_queue is getting rid of third @err
    member, because it's now returned as a regular
    error code.
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    4b1f8d08
Name
Last commit
Last update
..
atomic.h Loading commit data...
bitops.h Loading commit data...
compiler.h Loading commit data...
crtools.h Loading commit data...
file-ids.h Loading commit data...
files.h Loading commit data...
image.h Loading commit data...
inet_diag.h Loading commit data...
ipc_ns.h Loading commit data...
libnetlink.h Loading commit data...
list.h Loading commit data...
lock.h Loading commit data...
log.h Loading commit data...
namespaces.h Loading commit data...
parasite-syscall.h Loading commit data...
parasite.h Loading commit data...
proc_parse.h Loading commit data...
processor-flags.h Loading commit data...
ptrace.h Loading commit data...
rbtree.h Loading commit data...
restorer-log.h Loading commit data...
restorer.h Loading commit data...
sockets.h Loading commit data...
syscall-codes.h Loading commit data...
syscall.h Loading commit data...
sysctl.h Loading commit data...
types.h Loading commit data...
unix_diag.h Loading commit data...
util-net.h Loading commit data...
util.h Loading commit data...
uts_ns.h Loading commit data...