📄 prt_rsdir.cxx
字号:
/* * Copyright (C) 1998, 1999, Jonathan S. Shapiro. * * This file is part of the EROS Operating System. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2, * or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */#include <erosimg/App.hxx>#include <erosimg/Volume.hxx>#include <eros/Reserve.h>voidPrintRsrvDir(Volume& vol){ Diag::printf("Reserve directory:\n"); Diag::printf("\nP/N OID AllocCount LogLoc\n"); for (uint32_t i = 0; i < MAX_CPU_RESERVE; i++) { CpuReserveInfo cri= vol.GetReserve(i); if (cri.normPrio == -2 && cri.rsrvPrio == -2) continue; Diag::printf("%3d per=0x%08x%08x dur=0x%08x%08x rsrv=%d\n" " quanta=0x%08x%08x start = 0x%08x%08x norm %d\n", cri.index, (uint32_t) (cri.period >> 32), (uint32_t) cri.period, (uint32_t) (cri.duration >> 32), (uint32_t) cri.duration, cri.rsrvPrio, (uint32_t) (cri.quanta >> 32), (uint32_t) cri.quanta, (uint32_t) (cri.start >> 32), (uint32_t) cri.start, cri.normPrio); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -