[LinuxPPS] task force

Udo van den Heuvel udovdh at xs4all.nl
Fri Jan 30 16:20:08 CET 2009


Rodolfo Giometti wrote:
>> Please comment on the descriptions.
> 
> These are not kernel functions. Kernel gurus asked for EXPORT_SYMBOLs
> whose are: pps_register_source(), pps_unregister_source() and
> pps_event(). The functions you are describing are those from PPSAPI
> RFC.

Indeed. Below are the kernel functions you mention. They were already 
very close in formatting I guess.

/**
  * pps_register_source() - add a PPS source in the system
  * @arg1:	info: the PPS info struct
  * @arg2:	default_params: the default PPS parameters of the new 		 *	 
source
  *
  * This function is used to add a new PPS source in the system. The new
  * source is described by info's fields and it will have, as default PPS
  * parameters, the ones specified into default_params.
  *
  * The function returns, in case of success, the PPS source ID.
  *
  **/

int pps_register_source(struct pps_source_info *info, int default_params)


/**
  * pps_unregister_source() - remove a PPS source from the system
  * @arg1:	source: the PPS source ID
  *
  * This function is used to remove a previously registered PPS source
  * from the system.
  *
  **/

void pps_unregister_source(int source)

/**
  * pps_event() - register a PPS event into the system
  * @arg1:	source: the PPS source ID
  * @arg2:	ts: the event timestamp
  * @arg3:	event: the event type
  * @arg4:	data: userdef pointer
  *
  * This function is used by each PPS client in order to register a new
  * PPS event into the system (it's usually called inside an IRQ
  * handler).
  *
  * If an echo function is associated with the PPS source it will be
  * called as:
  *     pps->info.echo(source, event, data);
  *
  **/

void pps_event(int source, struct pps_ktime *ts, int event, void *data)


Please comment!
I will try to create a patch on sunday.

Kind regards
Udo



More information about the LinuxPPS mailing list