Mike Chan | 5a0b354 | 2009-01-07 11:40:42 -0800 | [diff] [blame] | 1 | /* include/linux/uid_stat.h |
| 2 | * |
| 3 | * Copyright (C) 2008-2009 Google, Inc. |
| 4 | * |
| 5 | * This software is licensed under the terms of the GNU General Public |
| 6 | * License version 2, as published by the Free Software Foundation, and |
| 7 | * may be copied, distributed, and modified under those terms. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | */ |
| 15 | |
| 16 | #ifndef __uid_stat_h |
| 17 | #define __uid_stat_h |
| 18 | |
| 19 | /* Contains definitions for resource tracking per uid. */ |
| 20 | |
| 21 | #ifdef CONFIG_UID_STAT |
| 22 | int uid_stat_tcp_snd(uid_t uid, int size); |
| 23 | int uid_stat_tcp_rcv(uid_t uid, int size); |
| 24 | #else |
| 25 | #define uid_stat_tcp_snd(uid, size) do {} while (0); |
| 26 | #define uid_stat_tcp_rcv(uid, size) do {} while (0); |
| 27 | #endif |
| 28 | |
| 29 | #endif /* _LINUX_UID_STAT_H */ |