Re: Why do we need /dev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/10/06, Jinesh K J <jineshkj.newsletters@xxxxxxxxx> wrote:
On 10/10/06, Greg KH <greg@xxxxxxxxx> wrote:
> On Tue, Oct 10, 2006 at 12:07:49PM +0530, Jinesh K J wrote:
> > Hi friends,
> >
> > I was just wondering why do we need a /dev directory for device files.
> > Why can't those entries be handled by sysfs and kobjects?
>
> You can not ignore POSIX, sorry.
I never knew (or realised) that device files are a part of POSIX. In
fact I've never gone through the POSIX standard.

>
> > Also, the concepts of major and minor numbers - don't anyone think
> > that they should not be a concern for a device driver programmer at
> > all. I think they are outdated or unnecessary.
>
> They aren't a concern anymore.  Why do you think they are?

int register_chrdev_region(dev_t from, unsigned count, const char *name)

I really don't want to see a 'dev_t' up there (though I know that it
can be ignored). Those numbers should be dealt within the kernel. Why
would anyone wanna set those numbers manually?

you mean to say when creating a new device in /dev from user land?


>
> thanks,
>
> greg k-h
>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux