/* * dcookies.h * * Persistent cookie-path mappings * * Copyright 2002 John Levon <levon@movementarian.org> */ #ifndef DCOOKIES_H #define DCOOKIES_H #ifdef CONFIG_PROFILING #include <linux/dcache.h> #include <linux/types.h> struct dcookie_user; struct path; /** * dcookie_register - register a user of dcookies * * Register as a dcookie user. Returns %NULL on failure. */ struct dcookie_user * dcookie_register(void); /** * dcookie_unregister - unregister a user of dcookies * * Unregister as a dcookie user. This may invalidate * any dcookie values returned from get_dcookie(). */ void dcookie_unregister(struct dcookie_user * user); /** * get_dcookie - acquire a dcookie * * Convert the given dentry/vfsmount pair into * a cookie value. * * Returns -EINVAL if no living task has registered as a * dcookie user. * * Returns 0 on success, with *cookie filled in */ int get_dcookie(struct path *path, unsigned long *cookie); #else
static inline struct dcookie_user * dcookie_register(void) { return NULL; }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
john levon | john levon | 11 | 78.57% | 1 | 33.33% |
adrian bunk | adrian bunk | 2 | 14.29% | 1 | 33.33% |
mika kukkonen | mika kukkonen | 1 | 7.14% | 1 | 33.33% |
Total | 14 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john levon | john levon | 11 | 84.62% | 1 | 50.00% |
adrian bunk | adrian bunk | 2 | 15.38% | 1 | 50.00% |
Total | 13 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john levon | john levon | 19 | 90.48% | 2 | 66.67% |
jan blunck | jan blunck | 2 | 9.52% | 1 | 33.33% |
Total | 21 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john levon | john levon | 97 | 86.61% | 2 | 28.57% |
jan blunck | jan blunck | 4 | 3.57% | 1 | 14.29% |
adrian bunk | adrian bunk | 4 | 3.57% | 1 | 14.29% |
alexey dobriyan | alexey dobriyan | 3 | 2.68% | 1 | 14.29% |
bob nelson | bob nelson | 3 | 2.68% | 1 | 14.29% |
mika kukkonen | mika kukkonen | 1 | 0.89% | 1 | 14.29% |
Total | 112 | 100.00% | 7 | 100.00% |