• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/bsd/kern/

Lines Matching +defs:kill +defs:buffer

810  * The jetsam no frills kill call
1455 boolean_t kill = false;
1500 /* Clearing the dirty shutdown flag, and the process is otherwise clean - kill */
1502 kill = true;
1505 kill = true;
1596 if (kill) {
1928 /* No highwater processes to kill. Continue or stop for now? */
1935 * For now, don't kill any other processes.
1957 /* Under pressure and unable to kill a process - panic */
1964 * We do not want to over-kill when thrashing has been detected.
2018 * when the attempt to kill an idle-exitable proc failed
2060 printf("task_exceeded_footprint: failed to kill the current task (exiting?).\n");
2090 printf("task_exceeded_cpulimit: failed to kill current task (exiting?).\n");
2252 memorystatus_cmd_set_panic_bits(user_addr_t buffer, uint32_t buffer_size) {
2260 ret = copyin(buffer, &debug, buffer_size);
2270 ret = copyout(&debug, buffer, sizeof(memorystatus_jetsam_panic_options_t));
2397 * - priority was not requested (this is something other than an ambient kill)
2637 /* No pid, so kill first process */
2759 /* Mark as locked temporarily to avoid kill */
3180 /* No idle exitable processes left to kill */
3571 /* Otherwise, validate the size of the buffer */
3621 memorystatus_cmd_get_priority_list(user_addr_t buffer, size_t buffer_size, int32_t *retval) {
3627 size_only = ((buffer == USER_ADDR_NULL) ? TRUE: FALSE);
3635 error = copyout(list, buffer, list_size);
3749 memorystatus_cmd_get_jetsam_snapshot(user_addr_t buffer, size_t buffer_size, int32_t *retval) {
3754 size_only = ((buffer == USER_ADDR_NULL) ? TRUE : FALSE);
3763 if ((error = copyout(snapshot, buffer, buffer_size)) == 0) {
3820 memorystatus_cmd_grp_set_properties(int32_t flags, user_addr_t buffer, size_t buffer_size, __unused int32_t *retval) {
3846 if ((buffer == USER_ADDR_NULL) || (buffer_size == 0) || ((buffer_size % sizeof(memorystatus_priority_entry_t)) != 0)) {
3859 if ((error = copyin(buffer, entries, buffer_size)) != 0) {
3976 memorystatus_cmd_set_priority_properties(pid_t pid, user_addr_t buffer, size_t buffer_size, __unused int32_t *retval) {
3985 if ((pid == 0) || (buffer == USER_ADDR_NULL) || (buffer_size == 0)) {
3989 /* Make sure the buffer is a multiple of the entry size, and that an excessive size isn't specified */
3997 error = copyin(buffer, entries, buffer_size);
4136 error = memorystatus_cmd_get_priority_list(args->buffer, args->buffersize, ret);
4140 error = memorystatus_cmd_set_priority_properties(args->pid, args->buffer, args->buffersize, ret);
4143 error = memorystatus_cmd_grp_set_properties((int32_t)args->flags, args->buffer, args->buffersize, ret);
4146 error = memorystatus_cmd_get_jetsam_snapshot(args->buffer, args->buffersize, ret);
4163 error = memorystatus_cmd_set_panic_bits(args->buffer, args->buffersize);