From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Mon, 8 Jun 2015 07:24:08 -0700 Subject: miscdevice and default attributes In-Reply-To: References: Message-ID: <20150608142408.GA1053@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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