3 * Header file for communication with kernel generic interface
7 #ifndef GUARD_QUOTAIO_GENERIC_H
8 #define GUARD_QUOTAIO_GENERIC_H
12 /* Get info from kernel to handle */
13 int vfs_get_info(struct quota_handle *h);
15 /* Set info in kernel from handle */
16 int vfs_set_info(struct quota_handle *h, int flags);
18 /* Get dquot from kernel */
19 int vfs_get_dquot(struct dquot *dquot);
21 /* Set dquot in kernel */
22 int vfs_set_dquot(struct dquot *dquot, int flags);
24 /* Generic routine for scanning dquots when quota format does not have
26 int generic_scan_dquots(struct quota_handle *h,
27 int (*process_dquot)(struct dquot *dquot, char *dqname),
28 int (*get_dquot)(struct dquot *dquot));