Lines Matching refs:result

82 	idmap_get_res	*result;  member
842 handle->result = kmem_zalloc((sizeof (idmap_get_res)) * in kidmap_get_create()
857 idmap_get_res *result; in kidmap_get_extend() local
865 result = kmem_zalloc((sizeof (idmap_get_res)) * in kidmap_get_extend()
867 (void) memcpy(result, get_handle->result, in kidmap_get_extend()
874 kmem_free(get_handle->result, in kidmap_get_extend()
876 get_handle->result = result; in kidmap_get_extend()
902 idmap_get_res *result; in kidmap_batch_getuidbysid() local
927 result = &get_handle->result[get_handle->mapping_num]; in kidmap_batch_getuidbysid()
928 result->idtype = IDMAP_UID; in kidmap_batch_getuidbysid()
929 result->uid = uid; in kidmap_batch_getuidbysid()
930 result->gid = NULL; in kidmap_batch_getuidbysid()
931 result->pid = NULL; in kidmap_batch_getuidbysid()
932 result->sid_prefix = NULL; in kidmap_batch_getuidbysid()
933 result->rid = NULL; in kidmap_batch_getuidbysid()
934 result->is_user = NULL; in kidmap_batch_getuidbysid()
935 result->stat = stat; in kidmap_batch_getuidbysid()
963 idmap_get_res *result; in kidmap_batch_getgidbysid() local
988 result = &get_handle->result[get_handle->mapping_num]; in kidmap_batch_getgidbysid()
989 result->idtype = IDMAP_GID; in kidmap_batch_getgidbysid()
990 result->uid = NULL; in kidmap_batch_getgidbysid()
991 result->gid = gid; in kidmap_batch_getgidbysid()
992 result->pid = NULL; in kidmap_batch_getgidbysid()
993 result->sid_prefix = NULL; in kidmap_batch_getgidbysid()
994 result->rid = NULL; in kidmap_batch_getgidbysid()
995 result->is_user = NULL; in kidmap_batch_getgidbysid()
996 result->stat = stat; in kidmap_batch_getgidbysid()
1026 idmap_get_res *result; in kidmap_batch_getpidbysid() local
1051 result = &get_handle->result[get_handle->mapping_num]; in kidmap_batch_getpidbysid()
1052 result->idtype = IDMAP_POSIXID; in kidmap_batch_getpidbysid()
1053 result->uid = NULL; in kidmap_batch_getpidbysid()
1054 result->gid = NULL; in kidmap_batch_getpidbysid()
1055 result->pid = pid; in kidmap_batch_getpidbysid()
1056 result->sid_prefix = NULL; in kidmap_batch_getpidbysid()
1057 result->rid = NULL; in kidmap_batch_getpidbysid()
1058 result->is_user = is_user; in kidmap_batch_getpidbysid()
1059 result->stat = stat; in kidmap_batch_getpidbysid()
1085 idmap_get_res *result; in kidmap_batch_getsidbyuid() local
1106 result = &get_handle->result[get_handle->mapping_num]; in kidmap_batch_getsidbyuid()
1107 result->idtype = IDMAP_SID; in kidmap_batch_getsidbyuid()
1108 result->uid = NULL; in kidmap_batch_getsidbyuid()
1109 result->gid = NULL; in kidmap_batch_getsidbyuid()
1110 result->pid = NULL; in kidmap_batch_getsidbyuid()
1111 result->sid_prefix = sid_prefix; in kidmap_batch_getsidbyuid()
1112 result->rid = rid; in kidmap_batch_getsidbyuid()
1113 result->is_user = NULL; in kidmap_batch_getsidbyuid()
1114 result->stat = stat; in kidmap_batch_getsidbyuid()
1140 idmap_get_res *result; in kidmap_batch_getsidbygid() local
1161 result = &get_handle->result[get_handle->mapping_num]; in kidmap_batch_getsidbygid()
1162 result->idtype = IDMAP_SID; in kidmap_batch_getsidbygid()
1163 result->uid = NULL; in kidmap_batch_getsidbygid()
1164 result->gid = NULL; in kidmap_batch_getsidbygid()
1165 result->pid = NULL; in kidmap_batch_getsidbygid()
1166 result->sid_prefix = sid_prefix; in kidmap_batch_getsidbygid()
1167 result->rid = rid; in kidmap_batch_getsidbygid()
1168 result->is_user = NULL; in kidmap_batch_getsidbygid()
1169 result->stat = stat; in kidmap_batch_getsidbygid()
1193 idmap_get_res *result; in kidmap_get_mappings() local
1231 result = &get_handle->result[i]; in kidmap_get_mappings()
1234 *result->stat = IDMAP_ERR_NOMAPPING; in kidmap_get_mappings()
1235 if (result->uid) in kidmap_get_mappings()
1236 *result->uid = UID_NOBODY; in kidmap_get_mappings()
1237 if (result->gid) in kidmap_get_mappings()
1238 *result->gid = GID_NOBODY; in kidmap_get_mappings()
1239 if (result->pid) in kidmap_get_mappings()
1240 *result->pid = UID_NOBODY; in kidmap_get_mappings()
1241 if (result->is_user) in kidmap_get_mappings()
1242 *result->is_user = 1; in kidmap_get_mappings()
1243 if (result->sid_prefix) in kidmap_get_mappings()
1244 *result->sid_prefix = NULL; in kidmap_get_mappings()
1245 if (result->rid) in kidmap_get_mappings()
1246 *result->rid = 0; in kidmap_get_mappings()
1250 *result->stat = rpc_res.ids.ids_val[i].retcode; in kidmap_get_mappings()
1257 if (result->uid) in kidmap_get_mappings()
1258 *result->uid = id->idmap_id_u.uid; in kidmap_get_mappings()
1259 if (result->pid) in kidmap_get_mappings()
1260 *result->pid = id->idmap_id_u.uid; in kidmap_get_mappings()
1261 if (result->is_user) in kidmap_get_mappings()
1262 *result->is_user = 1; in kidmap_get_mappings()
1265 if (*result->stat == IDMAP_SUCCESS && result->uid) in kidmap_get_mappings()
1271 else if (*result->stat == IDMAP_SUCCESS && result->pid) in kidmap_get_mappings()
1280 if (result->gid) in kidmap_get_mappings()
1281 *result->gid = id->idmap_id_u.gid; in kidmap_get_mappings()
1282 if (result->pid) in kidmap_get_mappings()
1283 *result->pid = id->idmap_id_u.gid; in kidmap_get_mappings()
1284 if (result->is_user) in kidmap_get_mappings()
1285 *result->is_user = 0; in kidmap_get_mappings()
1288 if (*result->stat == IDMAP_SUCCESS && result->gid) in kidmap_get_mappings()
1294 else if (*result->stat == IDMAP_SUCCESS && result->pid) in kidmap_get_mappings()
1307 if (result->sid_prefix && result->rid) { in kidmap_get_mappings()
1308 *result->sid_prefix = sid_prefix; in kidmap_get_mappings()
1309 *result->rid = id->idmap_id_u.sid.rid; in kidmap_get_mappings()
1311 if (*result->stat == IDMAP_SUCCESS && in kidmap_get_mappings()
1318 else if (*result->stat == IDMAP_SUCCESS && in kidmap_get_mappings()
1328 *result->stat = IDMAP_ERR_NORESULT; in kidmap_get_mappings()
1329 if (result->uid) in kidmap_get_mappings()
1330 *result->uid = UID_NOBODY; in kidmap_get_mappings()
1331 if (result->gid) in kidmap_get_mappings()
1332 *result->gid = GID_NOBODY; in kidmap_get_mappings()
1333 if (result->pid) in kidmap_get_mappings()
1334 *result->pid = UID_NOBODY; in kidmap_get_mappings()
1335 if (result->is_user) in kidmap_get_mappings()
1336 *result->is_user = 1; in kidmap_get_mappings()
1337 if (result->sid_prefix) in kidmap_get_mappings()
1338 *result->sid_prefix = NULL; in kidmap_get_mappings()
1339 if (result->rid) in kidmap_get_mappings()
1340 *result->rid = 0; in kidmap_get_mappings()
1352 result = &get_handle->result[i]; in kidmap_get_mappings()
1354 *result->stat = status; in kidmap_get_mappings()
1355 if (result->uid) in kidmap_get_mappings()
1356 *result->uid = UID_NOBODY; in kidmap_get_mappings()
1357 if (result->gid) in kidmap_get_mappings()
1358 *result->gid = GID_NOBODY; in kidmap_get_mappings()
1359 if (result->pid) in kidmap_get_mappings()
1360 *result->pid = UID_NOBODY; in kidmap_get_mappings()
1361 if (result->is_user) in kidmap_get_mappings()
1362 *result->is_user = 1; in kidmap_get_mappings()
1363 if (result->sid_prefix) in kidmap_get_mappings()
1364 *result->sid_prefix = NULL; in kidmap_get_mappings()
1365 if (result->rid) in kidmap_get_mappings()
1366 *result->rid = 0; in kidmap_get_mappings()
1388 kmem_free(get_handle->result, in kidmap_get_destroy()
1390 get_handle->result = NULL; in kidmap_get_destroy()