public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* help in sysfs
@ 2004-02-26  4:33 glauber
  2004-02-27  0:53 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: glauber @ 2004-02-26  4:33 UTC (permalink / raw)
  To: linux-kernel

Sorry if I'm being redundant

I spent a lot of time looking for it, and did 
not find, so I came here for help
Perhaps anyone can help me, or point me to the 
right place to ask

I did not yet fully understand how sysfs works, 
and so, any docs would be welcome

My main problem is: 
I'm trying to use udev, but some devices for
drivers that are compiled in the kernel does
not appear in. I searched for entries 
representing then in /sys, and found no one
Specifically, no pts is found there
in my .config, I have CONFIG_UNIX98_PTYS=y
What can I do in order to solve this problem?

Thanks in advance

glauber

-- 
Fortune:

Every man is as God made him, ay, and often worse.
		-- Miguel de Cervantes
---
Software Livre 
Tecnologia para um mundo melhor
==============================
Glauber de Oliveira Costa
e-mail: glauber@mpcnet.com.br
jabber: glommer@jabber.org
ICQ # : 18419549
Phone: +55 19 32892120
==============================


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help in sysfs
       [not found] <1tltA-427-3@gated-at.bofh.it>
@ 2004-02-26  5:38 ` Ryan Reich
  2004-02-26 14:02   ` glauber
  2004-02-26 14:22   ` glauber
  0 siblings, 2 replies; 5+ messages in thread
From: Ryan Reich @ 2004-02-26  5:38 UTC (permalink / raw)
  To: glauber, linux-kernel

glauber@mpcnet.com.br wrote:
> Sorry if I'm being redundant
> 
> I spent a lot of time looking for it, and did 
> not find, so I came here for help
> Perhaps anyone can help me, or point me to the 
> right place to ask
> 
> I did not yet fully understand how sysfs works, 
> and so, any docs would be welcome
> 
> My main problem is: 
> I'm trying to use udev, but some devices for
> drivers that are compiled in the kernel does
> not appear in. I searched for entries 
> representing then in /sys, and found no one
> Specifically, no pts is found there
> in my .config, I have CONFIG_UNIX98_PTYS=y
> What can I do in order to solve this problem?

Have you mounted /dev/pts?

$ mount -t devpts devpts /dev/pts

(Of course, /dev/pts needs to exist first).  They should appear when you 
connect to a terminal.

Also, not all the supported devices have yet been ported to sysfs.

-- 
Ryan Reich
ryanr@uchicago.edu

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help in sysfs
  2004-02-26  5:38 ` help in sysfs Ryan Reich
@ 2004-02-26 14:02   ` glauber
  2004-02-26 14:22   ` glauber
  1 sibling, 0 replies; 5+ messages in thread
From: glauber @ 2004-02-26 14:02 UTC (permalink / raw)
  To: Ryan Reich; +Cc: linux-kernel

It was mounted, as told me by mount(1)

but, I think it was a problem in the order of the mounts
maybe it was mounted over the old /dev
I mounted it again, and it worked fine. (at least, the pts
others things remais)
But, this brings me another doubt (an extension to the first
one):
Why there is not any information about the pts in /sys ?
There is only a directory entry called
/sys/cdev/tty/pts
May I conclude that there is no info avaiable about chardevs?

One more to go:
I use PPPoE to connect to the net. When I loaded the modules,
some entries apeared somewhere in /sys/udev, but the /dev
entry was not created, and I had to mknod it
Does anyone knows why ?

I may be (very) wrong, but it seems to be a behaviour common
to chardevs


On Wed, Feb 25, 2004 at 11:38:11PM -0600, Ryan Reich wrote:
> glauber@mpcnet.com.br wrote:
> >Sorry if I'm being redundant
> >
> >I spent a lot of time looking for it, and did 
> >not find, so I came here for help
> >Perhaps anyone can help me, or point me to the 
> >right place to ask
> >
> >I did not yet fully understand how sysfs works, 
> >and so, any docs would be welcome
> >
> >My main problem is: 
> >I'm trying to use udev, but some devices for
> >drivers that are compiled in the kernel does
> >not appear in. I searched for entries 
> >representing then in /sys, and found no one
> >Specifically, no pts is found there
> >in my .config, I have CONFIG_UNIX98_PTYS=y
> >What can I do in order to solve this problem?
> 
> Have you mounted /dev/pts?
> 
> $ mount -t devpts devpts /dev/pts
> 
> (Of course, /dev/pts needs to exist first).  They should appear when you 
> connect to a terminal.
> 
> Also, not all the supported devices have yet been ported to sysfs.
> 
> -- 
> Ryan Reich
> ryanr@uchicago.edu
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

-- 
Fortune:

"What's the use of a good quotation if you can't change it?"
		-- The Doctor
---
Software Livre 
Tecnologia para um mundo melhor
==============================
Glauber de Oliveira Costa
e-mail: glauber@mpcnet.com.br
jabber: glommer@jabber.org
ICQ # : 18419549
Phone: +55 19 32892120
==============================


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help in sysfs
  2004-02-26  5:38 ` help in sysfs Ryan Reich
  2004-02-26 14:02   ` glauber
@ 2004-02-26 14:22   ` glauber
  1 sibling, 0 replies; 5+ messages in thread
From: glauber @ 2004-02-26 14:22 UTC (permalink / raw)
  To: linux-kernel

It was mounted, as told me by mount(1)

but, I think it was a problem in the order of the mounts
maybe it was mounted over the old /dev
I mounted it again, and it worked fine. (at least, the pts
others things remais)
But, this brings me another doubt (an extension to the first
one):
Why there is not any information about the pts in /sys ?
There is only a directory entry called
/sys/cdev/tty/pts
May I conclude that there is no info avaiable about chardevs?

One more to go:
I use PPPoE to connect to the net. When I loaded the modules,
some entries apeared somewhere in /sys/udev, but the /dev
entry was not created, and I had to mknod it
Does anyone knows why ?

I may be (very) wrong, but it seems to be a behaviour common
to chardevs


On Wed, Feb 25, 2004 at 11:38:11PM -0600, Ryan Reich wrote:
> glauber@mpcnet.com.br wrote:
> >Sorry if I'm being redundant
> >
> >I spent a lot of time looking for it, and did 
> >not find, so I came here for help
> >Perhaps anyone can help me, or point me to the 
> >right place to ask
> >
> >I did not yet fully understand how sysfs works, 
> >and so, any docs would be welcome
> >
> >My main problem is: 
> >I'm trying to use udev, but some devices for
> >drivers that are compiled in the kernel does
> >not appear in. I searched for entries 
> >representing then in /sys, and found no one
> >Specifically, no pts is found there
> >in my .config, I have CONFIG_UNIX98_PTYS=y
> >What can I do in order to solve this problem?
> 
> Have you mounted /dev/pts?
> 
> $ mount -t devpts devpts /dev/pts
> 
> (Of course, /dev/pts needs to exist first).  They should appear when you 
> connect to a terminal.
> 
> Also, not all the supported devices have yet been ported to sysfs.
> 
> -- 
> Ryan Reich
> ryanr@uchicago.edu
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

-- 
Fortune:

If you can read this, you're too close.
---
Software Livre 
Tecnologia para um mundo melhor
==============================
Glauber de Oliveira Costa
e-mail: glauber@mpcnet.com.br
jabber: glommer@jabber.org
ICQ # : 18419549
Phone: +55 19 32892120
==============================


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: help in sysfs
  2004-02-26  4:33 glauber
@ 2004-02-27  0:53 ` Greg KH
  0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-02-27  0:53 UTC (permalink / raw)
  To: glauber; +Cc: linux-kernel

On Thu, Feb 26, 2004 at 01:33:02AM -0300, glauber@mpcnet.com.br wrote:
> 
> I did not yet fully understand how sysfs works, 
> and so, any docs would be welcome

Lots of docs in the Documentation/ tree.  Did you look at them?

> My main problem is: 
> I'm trying to use udev, but some devices for
> drivers that are compiled in the kernel does
> not appear in.

What devices?  There are still a few that are not exposed in sysfs that
need to be converted.

> I searched for entries representing then in /sys, and found no one
> Specifically, no pts is found there in my .config, I have
> CONFIG_UNIX98_PTYS=y What can I do in order to solve this problem?

This is well documented.  You need to mount devpts at /dev/pts.  It's
not a sysfs or udev issue at all.


thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-02-27  1:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1tltA-427-3@gated-at.bofh.it>
2004-02-26  5:38 ` help in sysfs Ryan Reich
2004-02-26 14:02   ` glauber
2004-02-26 14:22   ` glauber
2004-02-26  4:33 glauber
2004-02-27  0:53 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox