~ubuntu-branches/ubuntu/karmic/vzctl/karmic

« back to all changes in this revision

Viewing changes to include/cpu.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2007-04-10 18:08:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070410180816-0uuzj9fnna7gmzxv
Tags: 3.0.16-4
Etch has been released which means that this version can be uploaded
to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2000-2006 SWsoft. All rights reserved.
 
2
 *  Copyright (C) 2000-2007 SWsoft. All rights reserved.
3
3
 *
4
4
 *  This program is free software; you can redistribute it and/or modify
5
5
 *  it under the terms of the GNU General Public License as published by
18
18
#ifndef _CPU_H_
19
19
#define _CPU_H_
20
20
 
21
 
#define MAXCPUUNITS             500000
22
 
#define MINCPUUNITS             8
 
21
#define MAXCPUUNITS             500000
 
22
#define MINCPUUNITS             8
23
23
 
24
24
/** Data structure for cpu parameters.
25
25
 */
26
26
typedef struct {
27
 
        unsigned long *limit;   /**< CPU usage for the VPS in percents. */
 
27
        unsigned long *limit;   /**< CPU usage for the VE, in per cent. */
28
28
        unsigned long *weight;
29
 
        unsigned long *units;   /**< CPU weight in units for the VPS. */
30
 
        unsigned long *vcpus;   /**< number of CPUs available in the running VPS*/
 
29
        unsigned long *units;   /**< CPU weight for the VE, in units. */
 
30
        unsigned long *vcpus;   /**< number of CPUs available in the running VE*/
31
31
} cpu_param;
32
32
 
33
 
/**  Apply cpu parameters on running VPS.
 
33
/**  Apply cpu parameters on running VE.
34
34
 *
35
 
 * @param h             VPS handler.
36
 
 * @param veid          VPS id.
 
35
 * @param h             VE handler.
 
36
 * @param veid          VE id.
37
37
 * @param cpu           cpu parameters.
38
38
 * @return              0 on success.
39
39
 */