LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-05-2006, 08:16 PM   #1
rwcooper
Member
 
Registered: Mar 2006
Posts: 45

Rep: Reputation: 15
Question Slackware 10.2 Where is udevd started?


Hi,

I'm running slackware 10.2 with the generic 2.6.13 kernel. udevd is running even though /etc/rc.d/rc.udev does not have execute permission. Doing a grep on /etc for udev doesn't show any other script attemping to execute udevd.

If anyone can tell me where udevd is getting started I would appreciate it.

Thanks,
Randy
 
Old 04-06-2006, 12:56 PM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
There's something going on in rc.S but I don't understand what it's doing.
 
Old 04-06-2006, 05:11 PM   #3
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 367

Rep: Reputation: 45
Quote:
Originally Posted by Randux
There's something going on in rc.S but I don't understand what it's doing.
Do you mean this ?
Code:
# Initialize udev to manage /dev entries for 2.6.x kernels:
if [ -x /etc/rc.d/rc.udev ]; then
  if ! grep -w nohotplug /proc/cmdline 1> /dev/null 2> /dev/null ; then
    /etc/rc.d/rc.udev
  fi
fi
This doesn't start udevd. It starts the rc.udev script but in rwcooper's case it isn't executed since rc.udev doesn't
have execute permission.

In older udev releases (the one that slackware uses), udev was called from the hotplug subsystem. That is, when you
plug a usb flash disk, the hotplug insmoded the driver and udev mknoded the device. udevd is called when needed by
udevsend.

In newer udev releases this is deprecated and all the work is done by udevd.

I can't say for sure that this is your case, but it a possible cause.

Try "cat /proc/sys/kernel/hotplug" and see if it has some value like "/sbin/hotplug" or something else.
what permission does /etc/rc.d/rc.hotplug have ?
If you see in /etc/hotplug.d/default you will see 10-udev.hotplud which is called in order for the device to be made
according to the procedure i described above.

If the thing i describe is the cause for udevd being loaded (most probably is), you can try one of the following
1) echo "/dev/null" > /proc/sys/kernel/hotplug
2) rm /etc/hotplug.d/default/10-udev.hotplug

Try it and see if it works.
 
Old 04-07-2006, 12:05 AM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
I thought it might be a kernel module but I didn't find it in rc.modules either.......

Maybe if he doesn't want it he can put it in blacklist.
 
Old 04-07-2006, 08:59 AM   #5
rwcooper
Member
 
Registered: Mar 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Thumbs up

Hi,

Thanks for the info. At this point I'm not concerned that udevd is running. I simply wanted to know where it is being started, and if necessary how to stop it from running. Allthough at this time I don't know why I might want to stop it.

Randy
 
Old 04-07-2006, 09:08 AM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
I think it's a good question, but I think I also read that udev was the default in Slackware's 2.6 kernels...it may not be script-related. Maybe some of the guys running Slack with 2.6 can tell us.
 
Old 04-08-2006, 10:07 AM   #7
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 367

Rep: Reputation: 45
Quote:
Originally Posted by Randux
I thought it might be a kernel module but I didn't find it in rc.modules either.......

Maybe if he doesn't want it he can put it in blacklist.
udev doesn't have any kernel module. It is pure userspace. devfs was kernelspace.

Quote:
Originally Posted by Randux
I think it's a good question, but I think I also read that udev was the default in Slackware's 2.6 kernels...it may not be script-related. Maybe some of the guys running Slack with 2.6 can tell us.

I believe that it is script related. that is udevd is started from a script. I have explained in my previous post but
let me explain it more thoroughly. I may be wrong of course but i believe this is the reason that it is started.

a)You plug a device (i.e a usb flash disk).
b) The kernel runs the program that is mentioned in /proc/sys/kernel/hotplug (i think /sbin/hotplug in older kernels and
udevsend in newer ones) in order for the proper driver to be hotloaded
c) /sbin/hotplug runs its rules programs which reside in /etc/hotplug.d/default in alphabetical order.
By default there are 2 programs.
Code:
bash-3.1$ ls -l /etc/hotplug.d/default/
lrwxrwxrwx 1 root root   14 2006-01-03 11:56 10-udev.hotplug -> /sbin/udevsend
-rwxr-xr-x 1 root root 2931 2004-09-21 00:40 default.hotplug
1 is before d, so udevsend is run first so that the device is made and then default.hotplug is run which loads the
appropriate driver.
d) So, until now we said that udevsend is run to send the events.
I quote from the udevsend manpage
Quote:
udevd allows the serialization of hotplug(8) events. The events gener-
ated by the kernel may arrive in random order in userspace, that makes
it neccessary to reorder them.
... blah ...
udevd receives the events from udevsend If udevd isn't already running,
udevsend will start it.
So, udevsend which was called from the hotplug subsystem ran udevd.

As i said, i may be wrong but it the most possible cause of udevd being run.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
udevd problem Krugger Suse/Novell 1 11-03-2005 09:32 AM
udevd not running don_pingu Slackware 9 07-19-2005 04:03 PM
started slackware install...screwed up...please help GoinEasy9 Slackware 5 05-21-2004 04:50 PM
Getting started on Slackware for newbies JulianS Slackware 6 03-06-2004 12:07 AM
Getting Started with Slackware (Please Help!) jstef Slackware 20 02-01-2003 09:46 AM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration