mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 08:05:16 +00:00
a64c761c27
With this commit we finally have a way to read and manipulate basic resctrl settings. Locking is done only on exposed functions that read/write from/to resctrlfs. Not in functions that are exposed in virresctrlpriv.h as those are only supposed to be used from tests. More information about how resctrl works: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/x86/intel_rdt_ui.txt Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
28 lines
903 B
C
28 lines
903 B
C
/*
|
|
* virresctrlpriv.h:
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __VIR_RESCTRL_PRIV_H__
|
|
# define __VIR_RESCTRL_PRIV_H__
|
|
|
|
# include "virresctrl.h"
|
|
|
|
virResctrlAllocPtr
|
|
virResctrlAllocGetUnused(virResctrlInfoPtr resctrl);
|
|
|
|
#endif /* __VIR_RESCTRL_PRIV_H__ */
|