aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/netlink/specs/em.yaml
blob: 9905ca482325d9e4140eb1423e3b451995f3cdc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)

name: em

doc: |
  Energy model netlink interface to notify its changes.

protocol: genetlink

uapi-header: linux/energy_model.h

attribute-sets:
  -
    name: pds
    attributes:
      -
        name: pd
        type: nest
        nested-attributes: pd
        multi-attr: true
  -
    name: pd
    attributes:
      -
        name: pad
        type: pad
      -
        name: pd-id
        type: u32
      -
        name: flags
        type: u64
      -
        name: cpus
        type: string
  -
    name: pd-table
    attributes:
      -
        name: pd-id
        type: u32
      -
        name: ps
        type: nest
        nested-attributes: ps
        multi-attr: true
  -
    name: ps
    attributes:
      -
        name: pad
        type: pad
      -
        name: performance
        type: u64
      -
        name: frequency
        type: u64
      -
        name: power
        type: u64
      -
        name: cost
        type: u64
      -
        name: flags
        type: u64

operations:
  list:
    -
      name: get-pds
      attribute-set: pds
      doc: Get the list of information for all performance domains.
      do:
        reply:
          attributes:
            - pd
    -
      name: get-pd-table
      attribute-set: pd-table
      doc: Get the energy model table of a performance domain.
      do:
        request:
          attributes:
            - pd-id
        reply:
          attributes:
            - pd-id
            - ps
    -
      name: pd-created
      doc: A performance domain is created.
      notify: get-pd-table
      mcgrp: event
    -
      name: pd-updated
      doc: A performance domain is updated.
      notify: get-pd-table
      mcgrp: event
    -
      name: pd-deleted
      doc: A performance domain is deleted.
      attribute-set: pd-table
      event:
        attributes:
            - pd-id
      mcgrp: event

mcast-groups:
  list:
    -
      name: event