📄 libbalancer.c
字号:
/* Copyright (c) 2006 David Santo Orcero irbis@orcero.org *//* irbis@orcero.org http://www.orcero.org/irbis *//* Mosix is (c) of prof. Amnon Barak http://www.mosix.org *//* Original Mosix code is (c) of prof. Amnon Barak http://www.mosix.org *//* OpenMosix is (c) of Moshe Bar http://www.openmosix.com *//* Each respective trademark is of its own owner *//* All rights reserved. *//* This software is distributed under GPL 2 *//* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTY IS ASSUMED. *//* NO LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING *//* FROM THE USE OF THIS SOFTWARE WILL BE ACCEPTED. IT CAN BURN *//* YOUR HARD DISK, ERASE ALL YOUR DATA AND BROKE DOWN YOUR *//* MICROWAVE OVEN. YOU ARE ADVISED. */#include <libbalancer.h>#include <stdio.h>intom_goto_node (int baseorder, pid_t pid, char *where){ switch (baseorder) { case (DM_GOBACKHOME): printf ("Migrate order DM_GOBACKHOME unsuported.\n"); break; case (DM_BALANCE_DEFAULT): printf ("Migrate order DM_BALANCE_DEFAULT unsuported.\n"); break; case (DM_BALANCE_MOSIX): printf ("Migrate order DM_BALANCE_MOSIX (old mosix algoritm unsuported.\n"); break; case (DM_BALANCE_RR): printf ("Migrate order DM_BALANCE_RR (round robin) unsuported.\n"); break; case (DM_MANUAL_MIGRATION): om_writeproc_s (pid, "goto", where); break; default: printf ("Migrate order not understood.\n"); };}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -