#ifndef _VX_LIMIT_DEF_H #define _VX_LIMIT_DEF_H #include #include #include "limit.h" struct _vx_res_limit { rlim_t soft; /* Context soft limit */ rlim_t hard; /* Context hard limit */ rlim_atomic_t rcur; /* Current value */ rlim_t rmin; /* Context minimum */ rlim_t rmax; /* Context maximum */ atomic_t lhit; /* Limit hits */ }; /* context sub struct */ struct _vx_limit { struct _vx_res_limit res[NUM_LIMITS]; }; #ifdef CONFIG_VSERVER_DEBUG static inline void __dump_vx_limit(struct _vx_limit *limit) { int i; printk("\t_vx_limit:"); for (i=0; i