From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: miscdevice and default attributes
Date: Mon, 8 Jun 2015 07:24:08 -0700 [thread overview]
Message-ID: <20150608142408.GA1053@kroah.com> (raw)
In-Reply-To: <CADjfZFVgizsDYonDdJJKnvrn2ZLPXJP48iXzYEb51BsVcc3S9w@mail.gmail.com>
On Sun, Jun 07, 2015 at 08:13:37PM -0700, David Bakin wrote:
> Where do I set the default attributes for a device created with misc_register
> ()?
>
> In kernel 3.19 struct miscdevice looks like this:
>
> struct miscdevice? {
> ?int minor;
> ?const char *name;
> ?const struct file_operations *fops;
> ?struct list_head list;
> ?struct device *parent;
> ?struct device *this_device;
> ?const char *nodename;
> ?umode_t mode;
> };
Look at 4.1-rc1, this structure has changed to solve this issue.
Hope this helps,
greg k-h
prev parent reply other threads:[~2015-06-08 14:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-08 3:13 miscdevice and default attributes David Bakin
2015-06-08 14:24 ` Greg KH [this message]
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=20150608142408.GA1053@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@lists.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).