All of lore.kernel.org
 help / color / mirror / Atom feed
* can't find device_create funtion in a driver containing cdev (habanalabs)
@ 2021-04-28 13:46 ckim
  2021-04-28 18:32 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: ckim @ 2021-04-28 13:46 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 562 bytes --]

Hello list members,

In habanalabs' goya chip driver,
(https://elixir.bootlin.com/linux/v5.4.21/source/drivers/misc/habanalabs/dev
ice.c#L1057)

I can see cdev_init, cdev_add and class_create functions. 

Cdev_init is called insde device_init_cdev and cdev_add is called from
device_cdev_sysfs_add -> cdev_device_add.

I can see class_create being called too. But I couldn't find device_create
function (which is used to make sysfs entry?)

Can anyone tell me where device_create is called? (or where alternative
method is being used?)

Thank you!

Chan Kim

 


[-- Attachment #1.2: Type: text/html, Size: 2972 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-29  7:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-28 13:46 can't find device_create funtion in a driver containing cdev (habanalabs) ckim
2021-04-28 18:32 ` Greg KH
2021-04-29  0:56   ` ckim
2021-04-29  7:29     ` 'Greg KH'

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.