Driver duplicate?

Greg KH greg at kroah.com
Mon Mar 7 15:15:34 EST 2016


On Mon, Mar 07, 2016 at 03:05:41PM -0500, Kenneth Adam Miller wrote:
> Actually, I just realized that there is probably a way to look up the character
> device name with the file* that is passed in with the mmap call. Can anybody
> say how?

Why not just use the "normal" way to do this?  Have you tried it and it
somehow failed?

There are at least 3 different ways to do this, depending on your driver
code structure, so I can't give you a straight "do it this way" type
answer, sorry.

greg k-h



More information about the Kernelnewbies mailing list