<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=iso-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Danny Kukawka wrote:
<blockquote cite="mid200703271242.14408.danny.kukawka@web.de"
type="cite">
<pre wrap="">On Dienstag, 27. März 2007, YangKun wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi everyone,
Can someone tell me if it's possible to create a "fake/virtual" UDI in
the system ?
If it's possible, I want to create something like :
------------------------------------------------------------
udi = '/org/freedesktop/Hal/devices/fake_nic'
linux.subsystem = 'net' (string)
net.address = '00:00:00:00:00:ff' (string)
net.interface = 'fake_eth0' (string)
linux.sysfs_path = '/sys/class/net/fake_eth0' (string)
------------------------------------------------------------
I can use "hal-set-property" to create <key>/<value> pairs for a
specific UDI. But I don't know how to create an UDI entry. Can someone
give me some guidance ?
</pre>
</blockquote>
<pre wrap=""><!---->
There is no tool to do this (but you can do this IIRC via libhal or via
FDI-files). The question is: why do you need this? If there is a entry in
sysfs why not let HAL detect the device instead of add a fake device? What is
the reason/for what do you need this device/ is there really something in
sysfs?
</pre>
</blockquote>
Thanks very much for your reply<span class="moz-smiley-s1"><span> :-) </span></span><br>
<br>
The reason I want to create a fake UDI is because : HAL can not
recognize IBM's VIO(virtual I/O) devices(like virtual
NIC/disks/cdrom-drives) on IBM's pSeries LPAR. <br>
<br>
Regards<br>
YK<br>
<blockquote cite="mid200703271242.14408.danny.kukawka@web.de"
type="cite">
<pre wrap="">
Danny
_______________________________________________
hal mailing list
<a class="moz-txt-link-abbreviated" href="mailto:hal@lists.freedesktop.org">hal@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/hal">http://lists.freedesktop.org/mailman/listinfo/hal</a>
</pre>
</blockquote>
<br>
</body>
</html>