Lines Matching refs:result

84 	idmap_get_res	*result;  member
843 handle->result = kmem_zalloc((sizeof (idmap_get_res)) * in kidmap_get_create()
858 idmap_get_res *result; in kidmap_get_extend() local
866 result = kmem_zalloc((sizeof (idmap_get_res)) * in kidmap_get_extend()
868 (void) memcpy(result, get_handle->result, in kidmap_get_extend()
875 kmem_free(get_handle->result, in kidmap_get_extend()
877 get_handle->result = result; in kidmap_get_extend()
903 idmap_get_res *result; in kidmap_batch_getuidbysid() local
928 result = &get_handle->result[get_handle->mapping_num]; in kidmap_batch_getuidbysid()
929 result->idtype = IDMAP_UID; in kidmap_batch_getuidbysid()
930 result->uid = uid; in kidmap_batch_getuidbysid()
931 result->gid = NULL; in kidmap_batch_getuidbysid()
932 result->pid = NULL; in kidmap_batch_getuidbysid()
933 result->sid_prefix = NULL; in kidmap_batch_getuidbysid()
934 result->rid = NULL; in kidmap_batch_getuidbysid()
935 result->is_user = NULL; in kidmap_batch_getuidbysid()
936 result->stat = stat; in kidmap_batch_getuidbysid()
964 idmap_get_res *result; in kidmap_batch_getgidbysid() local
989 result = &get_handle->result[get_handle->mapping_num]; in kidmap_batch_getgidbysid()
990 result->idtype = IDMAP_GID; in kidmap_batch_getgidbysid()
991 result->uid = NULL; in kidmap_batch_getgidbysid()
992 result->gid = gid; in kidmap_batch_getgidbysid()
993 result->pid = NULL; in kidmap_batch_getgidbysid()
994 result->sid_prefix = NULL; in kidmap_batch_getgidbysid()
995 result->rid = NULL; in kidmap_batch_getgidbysid()
996 result->is_user = NULL; in kidmap_batch_getgidbysid()
997 result->stat = stat; in kidmap_batch_getgidbysid()
1027 idmap_get_res *result; in kidmap_batch_getpidbysid() local
1052 result = &get_handle->result[get_handle->mapping_num]; in kidmap_batch_getpidbysid()
1053 result->idtype = IDMAP_POSIXID; in kidmap_batch_getpidbysid()
1054 result->uid = NULL; in kidmap_batch_getpidbysid()
1055 result->gid = NULL; in kidmap_batch_getpidbysid()
1056 result->pid = pid; in kidmap_batch_getpidbysid()
1057 result->sid_prefix = NULL; in kidmap_batch_getpidbysid()
1058 result->rid = NULL; in kidmap_batch_getpidbysid()
1059 result->is_user = is_user; in kidmap_batch_getpidbysid()
1060 result->stat = stat; in kidmap_batch_getpidbysid()
1086 idmap_get_res *result; in kidmap_batch_getsidbyuid() local
1107 result = &get_handle->result[get_handle->mapping_num]; in kidmap_batch_getsidbyuid()
1108 result->idtype = IDMAP_SID; in kidmap_batch_getsidbyuid()
1109 result->uid = NULL; in kidmap_batch_getsidbyuid()
1110 result->gid = NULL; in kidmap_batch_getsidbyuid()
1111 result->pid = NULL; in kidmap_batch_getsidbyuid()
1112 result->sid_prefix = sid_prefix; in kidmap_batch_getsidbyuid()
1113 result->rid = rid; in kidmap_batch_getsidbyuid()
1114 result->is_user = NULL; in kidmap_batch_getsidbyuid()
1115 result->stat = stat; in kidmap_batch_getsidbyuid()
1141 idmap_get_res *result; in kidmap_batch_getsidbygid() local
1162 result = &get_handle->result[get_handle->mapping_num]; in kidmap_batch_getsidbygid()
1163 result->idtype = IDMAP_SID; in kidmap_batch_getsidbygid()
1164 result->uid = NULL; in kidmap_batch_getsidbygid()
1165 result->gid = NULL; in kidmap_batch_getsidbygid()
1166 result->pid = NULL; in kidmap_batch_getsidbygid()
1167 result->sid_prefix = sid_prefix; in kidmap_batch_getsidbygid()
1168 result->rid = rid; in kidmap_batch_getsidbygid()
1169 result->is_user = NULL; in kidmap_batch_getsidbygid()
1170 result->stat = stat; in kidmap_batch_getsidbygid()
1194 idmap_get_res *result; in kidmap_get_mappings() local
1232 result = &get_handle->result[i]; in kidmap_get_mappings()
1235 *result->stat = IDMAP_ERR_NOMAPPING; in kidmap_get_mappings()
1236 if (result->uid) in kidmap_get_mappings()
1237 *result->uid = UID_NOBODY; in kidmap_get_mappings()
1238 if (result->gid) in kidmap_get_mappings()
1239 *result->gid = GID_NOBODY; in kidmap_get_mappings()
1240 if (result->pid) in kidmap_get_mappings()
1241 *result->pid = UID_NOBODY; in kidmap_get_mappings()
1242 if (result->is_user) in kidmap_get_mappings()
1243 *result->is_user = 1; in kidmap_get_mappings()
1244 if (result->sid_prefix) in kidmap_get_mappings()
1245 *result->sid_prefix = NULL; in kidmap_get_mappings()
1246 if (result->rid) in kidmap_get_mappings()
1247 *result->rid = 0; in kidmap_get_mappings()
1251 *result->stat = rpc_res.ids.ids_val[i].retcode; in kidmap_get_mappings()
1258 if (result->uid) in kidmap_get_mappings()
1259 *result->uid = id->idmap_id_u.uid; in kidmap_get_mappings()
1260 if (result->pid) in kidmap_get_mappings()
1261 *result->pid = id->idmap_id_u.uid; in kidmap_get_mappings()
1262 if (result->is_user) in kidmap_get_mappings()
1263 *result->is_user = 1; in kidmap_get_mappings()
1266 if (*result->stat == IDMAP_SUCCESS && result->uid) in kidmap_get_mappings()
1272 else if (*result->stat == IDMAP_SUCCESS && result->pid) in kidmap_get_mappings()
1281 if (result->gid) in kidmap_get_mappings()
1282 *result->gid = id->idmap_id_u.gid; in kidmap_get_mappings()
1283 if (result->pid) in kidmap_get_mappings()
1284 *result->pid = id->idmap_id_u.gid; in kidmap_get_mappings()
1285 if (result->is_user) in kidmap_get_mappings()
1286 *result->is_user = 0; in kidmap_get_mappings()
1289 if (*result->stat == IDMAP_SUCCESS && result->gid) in kidmap_get_mappings()
1295 else if (*result->stat == IDMAP_SUCCESS && result->pid) in kidmap_get_mappings()
1308 if (result->sid_prefix && result->rid) { in kidmap_get_mappings()
1309 *result->sid_prefix = sid_prefix; in kidmap_get_mappings()
1310 *result->rid = id->idmap_id_u.sid.rid; in kidmap_get_mappings()
1312 if (*result->stat == IDMAP_ERR_NOTFOUND && in kidmap_get_mappings()
1315 *result->stat = IDMAP_SUCCESS; in kidmap_get_mappings()
1318 if (*result->stat == IDMAP_SUCCESS && in kidmap_get_mappings()
1325 else if (*result->stat == IDMAP_SUCCESS && in kidmap_get_mappings()
1335 *result->stat = IDMAP_ERR_NORESULT; in kidmap_get_mappings()
1336 if (result->uid) in kidmap_get_mappings()
1337 *result->uid = UID_NOBODY; in kidmap_get_mappings()
1338 if (result->gid) in kidmap_get_mappings()
1339 *result->gid = GID_NOBODY; in kidmap_get_mappings()
1340 if (result->pid) in kidmap_get_mappings()
1341 *result->pid = UID_NOBODY; in kidmap_get_mappings()
1342 if (result->is_user) in kidmap_get_mappings()
1343 *result->is_user = 1; in kidmap_get_mappings()
1344 if (result->sid_prefix) in kidmap_get_mappings()
1345 *result->sid_prefix = NULL; in kidmap_get_mappings()
1346 if (result->rid) in kidmap_get_mappings()
1347 *result->rid = 0; in kidmap_get_mappings()
1359 result = &get_handle->result[i]; in kidmap_get_mappings()
1361 *result->stat = status; in kidmap_get_mappings()
1362 if (result->uid) in kidmap_get_mappings()
1363 *result->uid = UID_NOBODY; in kidmap_get_mappings()
1364 if (result->gid) in kidmap_get_mappings()
1365 *result->gid = GID_NOBODY; in kidmap_get_mappings()
1366 if (result->pid) in kidmap_get_mappings()
1367 *result->pid = UID_NOBODY; in kidmap_get_mappings()
1368 if (result->is_user) in kidmap_get_mappings()
1369 *result->is_user = 1; in kidmap_get_mappings()
1370 if (result->sid_prefix) in kidmap_get_mappings()
1371 *result->sid_prefix = NULL; in kidmap_get_mappings()
1372 if (result->rid) in kidmap_get_mappings()
1373 *result->rid = 0; in kidmap_get_mappings()
1395 kmem_free(get_handle->result, in kidmap_get_destroy()
1397 get_handle->result = NULL; in kidmap_get_destroy()