From: Y Khan <ykhanportland@yahoo.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: class_device_create() and the mode of the device file in /dev.
Date: Tue, 22 May 2007 15:49:25 -0700 (PDT) [thread overview]
Message-ID: <288328.633.qm@web90313.mail.mud.yahoo.com> (raw)
Hi All,
I am porting a driver from 2.4 to 2.6. I have replaced
the call devfs_register() with class_create() and
class_device_create(). Now, udev is automatically
creating the device file in /dev.
The device file being created has a default mode of
0600. Is it possible to override this default mode
from inside the kernel. I do not want to do anything
in the configuration file for udev.
I could modify the attribute of the class and the
class device but I do not think that they will change
the default permissions for the /dev device file.
devfs_register() used to take a mode argument.
So, is there anyway of achieving this in 2.6.
-Y
____________________________________________________________________________________Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
next reply other threads:[~2007-05-22 22:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 22:49 Y Khan [this message]
2007-05-23 3:46 ` class_device_create() and the mode of the device file in /dev Kay Sievers
2007-05-23 23:29 ` Y Khan
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=288328.633.qm@web90313.mail.mud.yahoo.com \
--to=ykhanportland@yahoo.com \
--cc=linux-kernel@vger.kernel.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