File: acpi_genetlink.h

package info (click to toggle)
acpid 1%3A2.0.28-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,096 kB
  • sloc: sh: 4,377; ansic: 4,307; perl: 283; makefile: 30
file content (33 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (16)
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
#ifndef __ACPI_GENETLINK_H__
#define __ACPI_GENETLINK_H__ 1

#include <linux/types.h>

struct acpi_genl_event {
        char device_class[20];
        char bus_id[15];
        __u32 type;
        __u32 data;
};

/* attributes of acpi_genl_family */
enum {
        ACPI_GENL_ATTR_UNSPEC,
        ACPI_GENL_ATTR_EVENT,   /* ACPI event info needed by user space */
        __ACPI_GENL_ATTR_MAX,
};
#define ACPI_GENL_ATTR_MAX (__ACPI_GENL_ATTR_MAX - 1)

/* commands supported by the acpi_genl_family */
enum {
        ACPI_GENL_CMD_UNSPEC,
        ACPI_GENL_CMD_EVENT,    /* kernel->user notifications for ACPI events */        __ACPI_GENL_CMD_MAX,
};
#define ACPI_GENL_CMD_MAX (__ACPI_GENL_CMD_MAX - 1)
#define GENL_MAX_FAM_OPS        256
#define GENL_MAX_FAM_GRPS       256

#define ACPI_EVENT_FAMILY_NAME		"acpi_event"
#define ACPI_EVENT_MCAST_GROUP_NAME	"acpi_mc_group"

#endif