mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Kay Sievers" <kay.sievers@vrfy.org>
To: "Y Khan" <ykhanportland@yahoo.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: class_device_create() and the mode of the device file in /dev.
Date: Wed, 23 May 2007 05:46:50 +0200	[thread overview]
Message-ID: <3ae72650705222046o352ca76epbd5c36dea7706e70@mail.gmail.com> (raw)
In-Reply-To: <288328.633.qm@web90313.mail.mud.yahoo.com>

On 5/23/07, Y Khan <ykhanportland@yahoo.com> wrote:
> 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.

Please use device_create(), class_device_* will go away in the future.

> 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.

No, the kernel is not involved in specifying /dev permissions. You
have to add a udev rule to assign a mode that isn't the default.

Thanks,
Kay

  reply	other threads:[~2007-05-23  3:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-22 22:49 Y Khan
2007-05-23  3:46 ` Kay Sievers [this message]
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=3ae72650705222046o352ca76epbd5c36dea7706e70@mail.gmail.com \
    --to=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ykhanportland@yahoo.com \
    /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

all inboxes | Powered by JetHome®