kar
kar

Reputation: 2795

read function in net_device linux

I am developing a small net device in linux. When i gone through the

struct net_device_ops

{

.ndo_start_xmit = transfer

}

.ndo_start_xmit is for transfering data from net device to hardware. But how will i come to know when new a data arrives to the net device/Hardware. How to handle a read() in net_device? or How it handled in net_device ?

Thank you

Upvotes: 0

Views: 158

Answers (1)

Raber
Raber

Reputation: 2080

I believe the function you are looking for is netif_rx defined in linux/netdevice.h and declared in net/core/dev.c

Upvotes: 1

Related Questions