Linux Kernel
3.7.1
|
Go to the source code of this file.
Functions | |
void | ibmasm_receive_event (struct service_processor *sp, void *data, unsigned int data_size) |
int | ibmasm_get_next_event (struct service_processor *sp, struct event_reader *reader) |
void | ibmasm_cancel_next_event (struct event_reader *reader) |
void | ibmasm_event_reader_register (struct service_processor *sp, struct event_reader *reader) |
void | ibmasm_event_reader_unregister (struct service_processor *sp, struct event_reader *reader) |
int | ibmasm_event_buffer_init (struct service_processor *sp) |
void | ibmasm_event_buffer_exit (struct service_processor *sp) |
void ibmasm_cancel_next_event | ( | struct event_reader * | reader | ) |
void ibmasm_event_buffer_exit | ( | struct service_processor * | sp | ) |
int ibmasm_event_buffer_init | ( | struct service_processor * | sp | ) |
void ibmasm_event_reader_register | ( | struct service_processor * | sp, |
struct event_reader * | reader | ||
) |
void ibmasm_event_reader_unregister | ( | struct service_processor * | sp, |
struct event_reader * | reader | ||
) |
int ibmasm_get_next_event | ( | struct service_processor * | sp, |
struct event_reader * | reader | ||
) |
void ibmasm_receive_event | ( | struct service_processor * | sp, |
void * | data, | ||
unsigned int | data_size | ||
) |
receive_event Called by the interrupt handler when a dot command of type sp_event is received. Store the event in the circular event buffer, wake up any sleeping event readers. There is no reader marker in the buffer, therefore readers are responsible for keeping up with the writer, or they will lose events.