All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [2.6.27.2] Unnamed entry appears in /sys/module/usbcore/parameters/ .
Date: Wed, 22 Oct 2008 22:11:13 -0700	[thread overview]
Message-ID: <20081023051113.GA7719@kroah.com> (raw)
In-Reply-To: <200810221951.JHF56206.JFQFMFSVtLOHOO@I-love.SAKURA.ne.jp>

On Wed, Oct 22, 2008 at 07:51:13PM +0900, Tetsuo Handa wrote:
> Hello.
> 
> Below four results are obtained using config
> at http://I-love.SAKURA.ne.jp/tmp/config-2.6.27.2-2
> with CONFIG_USB=y and CONFIG_USB=m .
> 
> ----------------------------------------
> Result of CONFIG_USB=y on Debian Sarge
> 
> # ls -ail /sys/module/usbcore/parameters/
> total 0
> 200 drwxr-xr-x  2 root root    0 Oct 22 13:03
> 200 drwxr-xr-x  2 root root    0 Oct 22 13:03 .
> 199 drwxr-xr-x  4 root root    0 Oct 22 13:03 ..
> 201 -rw-r--r--  1 root root 4096 Oct 22 13:03 autosuspend
> 203 -r--r--r--  1 root root 4096 Oct 22 13:03 blinkenlights
> 204 -rw-r--r--  1 root root 4096 Oct 22 13:03 old_scheme_first
> 205 -rw-r--r--  1 root root 4096 Oct 22 13:03 use_both_schemes
> # cd /sys/module/usbcore/parameters/ ; strace ls -a
> (...snipped...)
> open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
> fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
> fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
> getdents64(3, /* 7 entries */, 4096)    = 224
> getdents64(3, /* 0 entries */, 4096)    = 0
> close(3)                                = 0
> fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb809b000
> write(1, "   .  ..  autosuspend  blinkenli"..., 72   .  ..  autosuspend  blinkenlights  old_scheme_first        use_both_schemes
> ) = 72
> munmap(0xb809b000, 4096)                = 0
> exit_group(0)                           = ?
> 
> ----------------------------------------
> Result of CONFIG_USB=m on Debian Sarge
> 
> # ls -ail /sys/module/usbcore/parameters/
> total 0
> 3007 drwxr-xr-x  2 root root    0 Oct 22 13:10 .
> 3005 drwxr-xr-x  6 root root    0 Oct 22 13:10 ..
> 3008 -rw-r--r--  1 root root 4096 Oct 22 13:10 autosuspend
> 3010 -r--r--r--  1 root root 4096 Oct 22 13:10 blinkenlights
> 3009 -r--r--r--  1 root root 4096 Oct 22 13:10 nousb
> 3011 -rw-r--r--  1 root root 4096 Oct 22 13:10 old_scheme_first
> 3013 -rw-r--r--  1 root root 4096 Oct 22 13:10 usbfs_snoop
> 3012 -rw-r--r--  1 root root 4096 Oct 22 13:10 use_both_schemes
> # cd /sys/module/usbcore/parameters/ ; strace ls -a
> (...snipped...)
> open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
> fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
> fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
> getdents64(3, /* 8 entries */, 4096)    = 264
> getdents64(3, /* 0 entries */, 4096)    = 0
> close(3)                                = 0
> fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb8081000
> write(1, ".  ..  autosuspend  blinkenlight"..., 90.  ..  autosuspend  blinkenlights  nousb  old_scheme_first  usbfs_snoop  use_both_schemes
> ) = 90
> munmap(0xb8081000, 4096)                = 0
> exit_group(0)                           = ?
> 
> ----------------------------------------
> Result of CONFIG_USB=y on CentOS 5.2
> 
> # ls -ail /sys/module/usbcore/parameters/
> total 0
> 200 drwxr-xr-x 2 root root    0 Oct 22 13:13 .
> 199 drwxr-xr-x 4 root root    0 Oct 22 13:13 ..
> 201 -rw-r--r-- 1 root root 4096 Oct 22 13:13 autosuspend
> 204 -r--r--r-- 1 root root 4096 Oct 22 13:13 blinkenlights
> 203 -rw-r--r-- 1 root root 4096 Oct 22 13:13 old_scheme_first
> 205 -rw-r--r-- 1 root root 4096 Oct 22 13:13 usbfs_snoop
> 202 -rw-r--r-- 1 root root 4096 Oct 22 13:13 use_both_schemes
> # cd /sys/module/usbcore/parameters/ ; strace ls -a
> (...snipped...)
> open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
> fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
> fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
> getdents64(3, /* 7 entries */, 4096)    = 232
> getdents64(3, /* 0 entries */, 4096)    = 0
> close(3)                                = 0
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f94000
> write(1, ".  ..  autosuspend  blinkenlight"..., 83.  ..  autosuspend  blinkenlights  old_scheme_first  usbfs_snoop  use_both_schemes
> ) = 83
> close(1)                                = 0
> munmap(0xb7f94000, 4096)                = 0
> exit_group(0)                           = ?
> 
> ----------------------------------------
> Result of CONFIG_USB=m on CentOS 5.2
> 
> # ls -ail /sys/module/usbcore/parameters/
> total 0
> 2607 drwxr-xr-x 2 root root    0 Oct 22 13:19 .
> 2605 drwxr-xr-x 6 root root    0 Oct 22 13:19 ..
> 2609 -rw-r--r-- 1 root root 4096 Oct 22 13:19 autosuspend
> 2612 -r--r--r-- 1 root root 4096 Oct 22 13:19 blinkenlights
> 2608 -r--r--r-- 1 root root 4096 Oct 22 13:19 nousb
> 2611 -rw-r--r-- 1 root root 4096 Oct 22 13:19 old_scheme_first
> 2613 -rw-r--r-- 1 root root 4096 Oct 22 13:19 usbfs_snoop
> 2610 -rw-r--r-- 1 root root 4096 Oct 22 13:19 use_both_schemes
> # cd /sys/module/usbcore/parameters/ ; strace ls -a
> (...snipped...)
> open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
> fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
> fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
> getdents64(3, /* 8 entries */, 4096)    = 264
> getdents64(3, /* 0 entries */, 4096)    = 0
> close(3)                                = 0
> open("/proc/meminfo", O_RDONLY)         = 3
> fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb805f000
> read(3, "MemTotal:      1018380 kB\nMemFre"..., 1024) = 806
> close(3)                                = 0
> munmap(0xb805f000, 4096)                = 0
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb805f000
> write(1, ".  ..  autosuspend  blinkenlight"..., 90.  ..  autosuspend  blinkenlights  nousb  old_scheme_first  usbfs_snoop  use_both_schemes
> ) = 90
> close(1)                                = 0
> munmap(0xb805f000, 4096)                = 0
> exit_group(0)                           = ?
> 
> ----------------------------------------
> 
> The difference between these results is that
> '205 -rw-r--r-- 1 root root 4096 Oct 22 13:13 usbfs_snoop' on CentOS 5.2 is
> reported as '200 drwxr-xr-x  2 root root    0 Oct 22 13:03' on Debian Sarge
> if CONFIG_USB=y.
> 
> Debian Sarge: gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
> CentOS 5.2:   gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)

I really have no idea what is causing this, and can't seem to duplicate
this here at all.

Anyone else?

thanks,

greg k-h

  reply	other threads:[~2008-10-23  5:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21  8:38 [2.6.27.2] Unnamed entry appears in /sys/module/usbcore/parameters/ Tetsuo Handa
2008-10-21 17:00 ` Greg KH
2008-10-22 10:51   ` Tetsuo Handa
2008-10-23  5:11     ` Greg KH [this message]
2008-10-23 11:14       ` [2.6.27.2] Unnamed entry appears in/sys/module/usbcore/parameters/ Tetsuo Handa

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=20081023051113.GA7719@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=penguin-kernel@I-love.SAKURA.ne.jp \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.