All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: ckim@etri.re.kr
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: can't find device_create funtion in a driver containing cdev (habanalabs)
Date: Wed, 28 Apr 2021 20:32:12 +0200	[thread overview]
Message-ID: <YImqLM4JkAMWjSy6@kroah.com> (raw)
In-Reply-To: <014d01d73c34$df6dcd00$9e496700$@etri.re.kr>

On Wed, Apr 28, 2021 at 10:46:21PM +0900, ckim@etri.re.kr wrote:
> 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?)

Happens in the call to cdev_device_add()


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

  reply	other threads:[~2021-04-28 18:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2021-04-29  0:56   ` ckim
2021-04-29  7:29     ` 'Greg KH'

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YImqLM4JkAMWjSy6@kroah.com \
    --to=greg@kroah.com \
    --cc=ckim@etri.re.kr \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.