Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Do I need hotplug and coldplug now that I have netlink ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 453

PostPosted: Fri Mar 24, 2006 12:20 am    Post subject: Do I need hotplug and coldplug now that I have netlink ? Reply with quote

I was looking in the rc scripts and read the udev addon start . It states that as of kernelversion 2.6.15, /sbin/hotplug is not used anymore, but that the netlinking mechanism is used instead. From googling, I only understood that netlink is a kind of communication mechanism that cantalk directly to udev through the /sys tree. The question is: now that I have 2.6.15 running, can I simply remove hotplug and coldplug, and only stick with udev ? or are these two ebuilds still necessary to get the coldplug/hotplugbehaviour ?
Back to top
View user's profile Send private message
mr_koz
n00b
n00b


Joined: 03 Mar 2005
Posts: 37
Location: New Zealand

PostPosted: Fri Mar 24, 2006 1:18 am    Post subject: Reply with quote

My understanding is that udev handles devices like block devices and pci cards that are loaded at boot and cold/hotplug handles devices that change or are added after boot like USB memory sticks or keyboard/mouse etc.
_________________
-------------------------------------
its the nature of my circuitry
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Mar 24, 2006 5:37 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
javeree_work
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 84

PostPosted: Mon Mar 27, 2006 7:52 am    Post subject: Reply with quote

Yes, that was my understanding too. However, I understood that hotplug was mainly a tool that could receive kernel events and then do something with it. It can be extended to do such things like opening a filemanager when a usb stick is received, starting a script to copy pictures from a camera, ...

However, in it's most basic setting, all it does in my understanding is pass the event on to udev, that can then use the information to create new /dev nodes. Actually, also udev can be extended to run specific scripts when a new dev node is created.

Therefore, my thinking was that unless one uses hotplug for something fancy, it would not be needed anymore if sending events from the kernel to udev is replaced by this 'netlink' mechanism.

My problem mainly is that I can't find any decent explanation on this new mechanism. Googling turned up either some ubscure conversations between kernel developers, or pages concerning networking.
Back to top
View user's profile Send private message
mallchin
l33t
l33t


Joined: 21 Jan 2003
Posts: 655
Location: United Kingdom

PostPosted: Tue Apr 04, 2006 1:56 pm    Post subject: Reply with quote

This might be useful.
_________________
6700 @ 2.66GHz, 4Gb RAM, 2 x 500Gb, 8800 GTX, PhysX, X-Fi, 24" Widescreen, Tux mascot
Back to top
View user's profile Send private message
javeree_work
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 84

PostPosted: Tue Apr 04, 2006 4:13 pm    Post subject: Reply with quote

What an excellent explanation !!!

I'll first check if I have any custom hotplug or coldplug script running (I don't think so, but better check for sure), and then it's `emerge -C hotplug coldplug` !
Back to top
View user's profile Send private message
skion
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2003
Posts: 99
Location: Amsterdam, Netherlands

PostPosted: Fri Apr 21, 2006 9:10 am    Post subject: Reply with quote

Yeah, that was very usefull, thanks!
_________________
- Skion
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum