hello,

i wrote a driver for a pci board an created a file in sysfs,
which i use for communication from userspace. so far
the path to the file was hardcoded in my userspace
client but now i want it to be independent of whatever
system and pci slot this card is installed on. it seems
like no matter what path i take in sysfs to get to my
file i have to refer to the pci domain and func numbers.
for example: /sys/bus/pci/drivers/mydriver/0000:06:00.0/myfile

is there an easy [or hard :)] way to do this only knowing
the pid and vid numbers? are there any userspace functions
that can help me do this?

any help is appreciated.

-- ilya

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to