On Fri, Nov 08, 2019 at 07:08:39PM +0000, Ohms, Jannis wrote:
> I have a system consisting of 1 to N NICs each containing a PHC each 
> registered as a ptp device. Each phc is a slave to a different master.
> I need to get the time of each phc and perform some arithmetic on the values. 
> I  want to implement this in kernel space.

Can't imagine why.

> I thought about writing a  device driver for a chardev or a proc
> file.

But those are use space interfaces.  You wanted a kernel space interface.

> This driver would perform the required operations in a critical section which 
> can not be interrupted.
> Is there an API for kernel space access to the phcs ?

No, there is no such API.

> PS I excuse in advance if this is a topic for the development list

This topic is about the design of the kernel, and so it would be a
topic for the lkml or the netdev list.

Thanks,
Richard


_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to