Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / src / linux-headers-3.13.0-24 / include / linux / | server ip : 172.67.156.115 your ip : 172.70.127.162 H O M E |
Filename | |
Size | 1.25 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 20-Jan-2014 10:40 |
Last accessed | 06-Jul-2025 05:42 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
/*
* dcookies.h
*
* Persistent cookie-path mappings
*
* Copyright 2002 John Levon <[email protected]>
*/
#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;
}
static inline void dcookie_unregister(struct dcookie_user * user)
{
return;
}
static inline int get_dcookie(struct path *path, unsigned long *cookie)
{
return -ENOSYS;
}
#endif /* CONFIG_PROFILING */
#endif /* DCOOKIES_H */
* dcookies.h
*
* Persistent cookie-path mappings
*
* Copyright 2002 John Levon <[email protected]>
*/
#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;
}
static inline void dcookie_unregister(struct dcookie_user * user)
{
return;
}
static inline int get_dcookie(struct path *path, unsigned long *cookie)
{
return -ENOSYS;
}
#endif /* CONFIG_PROFILING */
#endif /* DCOOKIES_H */