struct spi_driver Âmcp2510_can_driver = {
ÂÂ Â.driver = {...}
ÂÂ Â.probe=
ÂÂ Â...
}
In probe function, it registers itself as a "net_device" with "mcp251x_netdev_ops". So I am not sure how this system works.
I know that the userspace must see it as a network driver. But can userspace really see this driver? Or what it can see is the module "can.ko" -- the protocol stack ?
Does the network stack talks to SPI and SPI talks to mcp2510 chip and transmit messages can-bus? Or something else?
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies