Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/linker.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
struct linker_file { | struct linker_file { | ||||
KOBJ_FIELDS; | KOBJ_FIELDS; | ||||
int refs; /* reference count */ | int refs; /* reference count */ | ||||
int userrefs; /* kldload(2) count */ | int userrefs; /* kldload(2) count */ | ||||
int flags; | int flags; | ||||
#define LINKER_FILE_LINKED 0x1 /* file has been fully linked */ | #define LINKER_FILE_LINKED 0x1 /* file has been fully linked */ | ||||
#define LINKER_FILE_MODULES 0x2 /* file has >0 modules at preload */ | |||||
TAILQ_ENTRY(linker_file) link; /* list of all loaded files */ | TAILQ_ENTRY(linker_file) link; /* list of all loaded files */ | ||||
char* filename; /* file which was loaded */ | char* filename; /* file which was loaded */ | ||||
char* pathname; /* file name with full path */ | char* pathname; /* file name with full path */ | ||||
int id; /* unique id */ | int id; /* unique id */ | ||||
caddr_t address; /* load address */ | caddr_t address; /* load address */ | ||||
size_t size; /* size of file */ | size_t size; /* size of file */ | ||||
caddr_t ctors_addr; /* address of .ctors */ | caddr_t ctors_addr; /* address of .ctors */ | ||||
size_t ctors_size; /* size of .ctors */ | size_t ctors_size; /* size of .ctors */ | ||||
▲ Show 20 Lines • Show All 270 Lines • Show Last 20 Lines |