1/* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6#ifndef _UAPINFS_IDMAP_H 7#define _UAPINFS_IDMAP_H 8#include <linux/types.h> 9#define IDMAP_NAMESZ 128 10#define IDMAP_TYPE_USER 0 11#define IDMAP_TYPE_GROUP 1 12#define IDMAP_CONV_IDTONAME 0 13#define IDMAP_CONV_NAMETOID 1 14#define IDMAP_STATUS_INVALIDMSG 0x01 15#define IDMAP_STATUS_AGAIN 0x02 16#define IDMAP_STATUS_LOOKUPFAIL 0x04 17#define IDMAP_STATUS_SUCCESS 0x08 18struct idmap_msg { 19 __u8 im_type; 20 __u8 im_conv; 21 char im_name[IDMAP_NAMESZ]; 22 __u32 im_id; 23 __u8 im_status; 24}; 25#endif 26