00001 00012 #ifndef OPD_IMAGE_H 00013 #define OPD_IMAGE_H 00014 00015 #include "op_list.h" 00016 #include "op_config_24.h" 00017 #include "op_types.h" 00018 00019 #include <time.h> 00020 00021 struct opd_24_sfile; 00022 00027 struct opd_image { 00029 struct list_head hash_next; 00031 int ref_count; 00033 struct opd_24_sfile ** sfiles[NR_CPUS]; 00035 char * name; 00038 char * app_name; 00040 pid_t tid; 00042 pid_t tgid; 00044 time_t mtime; 00046 int kernel; 00048 int ignored; 00049 }; 00050 00052 typedef void (*opd_image_cb)(struct opd_image *); 00053 00060 void opd_for_each_image(opd_image_cb imagecb); 00061 00065 void opd_init_images(void); 00066 00073 void opd_delete_image(struct opd_image * image); 00074 00087 struct opd_image * opd_get_kernel_image(char const * name, 00088 char const * app_name, pid_t tid, pid_t tgid); 00089 00103 struct opd_image * opd_get_image(char const * name, char const * app_name, 00104 int kernel, pid_t tid, pid_t tgid); 00105 00109 int opd_get_nr_images(void); 00110 00111 #endif /* OPD_IMAGE_H */