I have the following code, which works fine and has been in use for a quite a while now... but I have no idea what it means.
struct event_param
{
int task:3;
int param1;
int param2;
};
#define SV_DRIVER_EVENTS_MASK_SIZE (SV_DRIVER_EVENT_LAST*sizeof(struct event_param))
typedef struct event_param driver_event_mask[SV_DRIVER_EVENTS_MASK_SIZE];
typedef driver_event_mask DriverEventMask;
- What does
driver_event_mask
represent? - Why is there
sizeof(struct event_param)
inside the array?