Lines Matching refs:team

16 #include <team.h>
83 /*! Registers an image with the specified team.
86 register_image(Team *team, extended_image_info *info, size_t size, bool locked)
96 image->team = team->id;
106 list_add_link_to_head(&team->image_list, image);
108 list_add_item(&team->image_list, image);
117 TRACE(("register_image(team = %p, image id = %ld, image = %p\n", team, id, image));
122 /*! Registers an image with the specified team.
125 register_image(Team *team, extended_image_info *info, size_t size)
127 return register_image(team, info, size, false);
131 /*! Unregisters an image from the specified team.
134 unregister_image(Team *team, image_id id)
141 if (image != NULL && image->team == team->id) {
166 // get the team
187 /*! Counts the registered images from the specified team.
191 count_images(Team *team)
198 while ((image = (struct image*)list_get_next_item(&team->image_list, image))
207 /*! Removes all images from the specified team. Must only be called
208 with a team that has already been removed from the list (in thread_exit()).
211 remove_images(Team *team)
215 ASSERT(team != NULL);
219 while ((image = (struct image*)list_remove_head_item(&team->image_list))
260 // get the team
261 Team* team = Team::Get(teamID);
262 if (team == NULL)
264 BReference<Team> teamReference(team, true);
266 // iterate through the team's images
272 while ((image = (struct image*)list_get_next_item(&team->image_list,
291 Team *team;
295 team = team_get_team_struct_locked(id);
296 if (team == NULL) {
297 kprintf("No team with ID %" B_PRId32 " found\n", id);
301 team = thread_get_current_thread()->team;
303 kprintf("Registered images of team %" B_PRId32 "\n", team->id);
307 while ((image = (struct image*)list_get_next_item(&team->image_list, image))
341 // get the team
342 Team* team = Team::Get(teamID);
343 if (team == NULL)
345 BReference<Team> teamReference(team, true);
347 // iterate through the team's images
352 while ((image = (struct image*)list_get_next_item(&team->image_list,
363 image_debug_lookup_user_symbol_address(Team *team, addr_t address,
372 while ((image = (struct image*)list_get_next_item(&team->image_list, image))
415 add_debugger_command("team_images", &dump_images_list, "Dump all registered images from the current team");
425 Team* team = thread_get_current_thread()->team;
427 TeamLocker teamLocker(team);
429 if (team->loading_info != NULL) {
435 team->loading_info->result = result;
436 team->loading_info->condition.NotifyAll();
437 team->loading_info = NULL;
439 // we're done with the team stuff
456 return unregister_image(thread_get_current_thread()->team, id);
472 return register_image(thread_get_current_thread()->team, &info, size);
534 _user_get_next_image_info(team_id team, int32 *_cookie, image_info *userInfo,
549 status = _get_next_image_info(team, &cookie, &info, sizeof(image_info));