/* * dcookies.h * * Persistent cookie-path mappings * * Copyright 2002 John Levon */ #ifndef DCOOKIES_H #define DCOOKIES_H #ifdef CONFIG_PROFILING #include #include struct dcookie_user; struct path; struct dcookie_user * dcookie_register(void); void dcookie_unregister(struct dcookie_user * user); int get_dcookie(struct path *path, unsigned long *cookie); #else static inline struct dcookie_user * dcookie_register(void) { return NULL; } static inline void dcookie_unregister(struct dcookie_user * user) { return; } static inline int get_dcookie(struct path *path, unsigned long *cookie) { return -ENOSYS; } #endif #endif