can't find device_create funtion in a driver containing cdev (habanalabs)

ckim at etri.re.kr ckim at etri.re.kr
Wed Apr 28 09:46:21 EDT 2021


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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20210428/68b11fc8/attachment.html>


More information about the Kernelnewbies mailing list