Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
kqid.c File Reference
#include <linux/fs.h>
#include <linux/quota.h>
#include <linux/export.h>

Go to the source code of this file.

Functions

bool qid_eq (struct kqid left, struct kqid right)
 
 EXPORT_SYMBOL (qid_eq)
 
bool qid_lt (struct kqid left, struct kqid right)
 
 EXPORT_SYMBOL (qid_lt)
 
qid_t from_kqid (struct user_namespace *targ, struct kqid kqid)
 
 EXPORT_SYMBOL (from_kqid)
 
qid_t from_kqid_munged (struct user_namespace *targ, struct kqid kqid)
 
 EXPORT_SYMBOL (from_kqid_munged)
 
bool qid_valid (struct kqid qid)
 
 EXPORT_SYMBOL (qid_valid)
 

Function Documentation

EXPORT_SYMBOL ( qid_eq  )
EXPORT_SYMBOL ( qid_lt  )
EXPORT_SYMBOL ( from_kqid  )
EXPORT_SYMBOL ( from_kqid_munged  )
EXPORT_SYMBOL ( qid_valid  )
qid_t from_kqid ( struct user_namespace targ,
struct kqid kqid   
)

from_kqid - Create a qid from a kqid user-namespace pair. : The user namespace we want a qid in. : The kernel internal quota identifier to start with.

Map into the user-namespace specified by and return the resulting qid.

There is always a mapping into the initial user_namespace.

If has no mapping in (qid_t)-1 is returned.

Definition at line 67 of file kqid.c.

qid_t from_kqid_munged ( struct user_namespace targ,
struct kqid kqid   
)

from_kqid_munged - Create a qid from a kqid user-namespace pair. : The user namespace we want a qid in. : The kernel internal quota identifier to start with.

Map into the user-namespace specified by and return the resulting qid.

There is always a mapping into the initial user_namespace.

Unlike from_kqid from_kqid_munged never fails and always returns a valid projid. This makes from_kqid_munged appropriate for use in places where failing to provide a qid_t is not a good option.

If has no mapping in the kqid.type specific overflow identifier is returned.

Definition at line 100 of file kqid.c.

bool qid_eq ( struct kqid  left,
struct kqid  right 
)

qid_eq - Test to see if to kquid values are the same : A qid value : Another quid value

Return true if the two qid values are equal and false otherwise.

Definition at line 12 of file kqid.c.

bool qid_lt ( struct kqid  left,
struct kqid  right 
)

qid_lt - Test to see if one qid value is less than another : The possibly lesser qid value : The possibly greater qid value

Return true if left is less than right and false otherwise.

Definition at line 36 of file kqid.c.

bool qid_valid ( struct kqid  qid)

qid_valid - Report if a valid value is stored in a kqid. : The kernel internal quota identifier to test.

Definition at line 119 of file kqid.c.