how to find a file in sysfs created with my module for a pci device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux