This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / linux / vserver / cacct_int.h
1 #ifndef _VX_CACCT_INT_H
2 #define _VX_CACCT_INT_H
3
4
5 #ifdef  __KERNEL__
6
7 static inline
8 unsigned long vx_sock_count(struct _vx_cacct *cacct, int type, int pos)
9 {
10         return atomic_long_read(&cacct->sock[type][pos].count);
11 }
12
13
14 static inline
15 unsigned long vx_sock_total(struct _vx_cacct *cacct, int type, int pos)
16 {
17         return atomic_long_read(&cacct->sock[type][pos].total);
18 }
19
20 #endif  /* __KERNEL__ */
21 #endif  /* _VX_CACCT_INT_H */