- static std::list<int> gTeams;
- status_t
- _kern_get_next_team_info(int32 *cookie, team_info *info)
- {
- CALLED();
- if (*cookie == 0) {
- // Put all pids in /proc/ into gTeams
- }
- if (*cookie > gTeams.size()) {
- // empty gTeams
- *cookie = -1;
- return B_ERROR;
- }
- // get next process
- _kern_get_team_info(gTeams.get(i), info);
- *cookie++;
- return B_OK;
- }

By: Guest | Date: May 12 2020 17:53 | Format: None | Expires: never | Size: 381 B | Hits: 498
Latest pastes
1 hours ago
2 hours ago
2 hours ago
3 hours ago
6 hours ago