VSF Documented
kobject.h
Go to the documentation of this file.
1#ifndef __VSF_LINUX_KOBJECT_H__
2#define __VSF_LINUX_KOBJECT_H__
3
4#include <linux/list.h>
5#include <linux/kref.h>
6#include <linux/wait.h>
7#include <linux/workqueue.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13struct kobj_type;
14struct kobject {
15 const char *name;
17 struct kobject *parent;
18 const struct kobj_type *ktype;
19 struct kref kref;
21};
22
23struct kobj_type {
24 void (*release)(struct kobject *kobj);
25};
26
28 char *argv[3];
29};
30
31static inline const char * kobject_name(const struct kobject *kobj)
32{
33 return kobj->name;
34}
35
36extern struct kobject * kobject_get(struct kobject *kobj);
37extern void kobject_put(struct kobject *kobj);
38extern void kobject_del(struct kobject *kobj);
39
40extern int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...);
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif
void kobject_put(struct kobject *kobj)
Definition vsf_linux_core.c:105
struct kobject * kobject_get(struct kobject *kobj)
Definition vsf_linux_core.c:97
void kobject_del(struct kobject *kobj)
Definition vsf_linux_core.c:112
int add_uevent_var(struct kobj_uevent_env *env, const char *format,...)
Definition vsf_linux_core.c:120
Definition kobject.h:23
void(* release)(struct kobject *kobj)
Definition kobject.h:24
Definition kobject.h:27
char * argv[3]
Definition kobject.h:28
Definition kobject.h:14
bool state_in_sysfs
Definition kobject.h:20
struct list_head entry
Definition kobject.h:16
const char * name
Definition kobject.h:15
const struct kobj_type * ktype
Definition kobject.h:18
struct kobject * parent
Definition kobject.h:17
Definition kref.h:10
Definition list.h:77
SDL_PixelFormat format
Definition vsf_sdl2_pixelformat.c:32