Re: [PATCH v25 10/21] x86/sgx: Linux Enclave Driver

From
Haitao Huang <hidden>
Date
2020-02-05 15:58:20
Also in
lkml
Reply to
Jarkko Sakkinen, 2020-02-04
On Tue, 04 Feb 2020 00:05:34 -0600, Jarkko Sakkinen [off-list ref] wrote:
...
quoted hunk ↗ jump to hunk
+const struct file_operations sgx_provision_fops = {
+	.owner			= THIS_MODULE,
+};
+
+static struct miscdevice sgx_dev_enclave = {
+	.minor = MISC_DYNAMIC_MINOR,
+	.name = "enclave",
+	.nodename = "sgx/enclave",
+	.fops = &sgx_encl_fops,
+};
+
How does kernel manage name conflict if multiple misc device requesting "enclave" ?

And the attributes for a udev rule to match this device according to udevadm output are:
SUBSYSTEM=="misc",KERNEL=="enclave"

Is that specific enough to uniquely match this device?

Similar questions for the "provision" device introduced later in this series.

Thanks
Haitao
Thread (4 messages) 4 messages, 2 authors, last reply 2020-02-07
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