aboutsummaryrefslogtreecommitdiff
path: root/include/linux/uid_stat.h
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-19 10:42:11 +0100
committerMark Brown <broonie@linaro.org>2013-07-19 10:42:11 +0100
commit0b37fbf7508ff30e1d3668fea74e82f842448354 (patch)
tree6d01fee5e95e1d4a8042ef473d61dd816b43d13e /include/linux/uid_stat.h
parent0a37d59e3c8c2299f8931df0cb1c0f525047fab5 (diff)
parenta88f9e27498afaea615ad3e93af4f26df1f84987 (diff)
Merge branch 'experimental/android-3.10' of https://android.googlesource.com/kernel/common into linux-linaro-lsk-android
Conflicts: arch/arm/include/asm/smp.h arch/arm/kernel/smp.c kernel/futex.c
Diffstat (limited to 'include/linux/uid_stat.h')
-rw-r--r--include/linux/uid_stat.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/uid_stat.h b/include/linux/uid_stat.h
new file mode 100644
index 00000000000..6bd6c4e52d1
--- /dev/null
+++ b/include/linux/uid_stat.h
@@ -0,0 +1,29 @@
+/* include/linux/uid_stat.h
+ *
+ * Copyright (C) 2008-2009 Google, Inc.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef __uid_stat_h
+#define __uid_stat_h
+
+/* Contains definitions for resource tracking per uid. */
+
+#ifdef CONFIG_UID_STAT
+int uid_stat_tcp_snd(uid_t uid, int size);
+int uid_stat_tcp_rcv(uid_t uid, int size);
+#else
+#define uid_stat_tcp_snd(uid, size) do {} while (0);
+#define uid_stat_tcp_rcv(uid, size) do {} while (0);
+#endif
+
+#endif /* _LINUX_UID_STAT_H */