Re: [PATCH v23 12/24] x86/sgx: Linux Enclave Driver

From
Greg KH <gregkh@linuxfoundation.org>
Date
2019-12-07 08:09:43
Also in
lkml
Reply to
Jarkko Sakkinen, 2019-12-06
On Fri, Dec 06, 2019 at 10:38:07PM +0200, Jarkko Sakkinen wrote:
quoted
Why a whole cdev?

Why not use a misc device?  YOu only have 2 devices right?  Why not 2
misc devices then?  That saves the use of a whole major number and makes
your code a _LOT_ simpler.
The downside would be that if we ever want to add sysfs attributes, that
could not be done synchronously with the device creation.
That is what the groups member of struct misc_device is for.

greg k-h
Thread (18 messages) 18 messages, 4 authors, last reply 2019-12-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help