Re: pci_class_name....?

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

 



thanx for reply. Just i wanted to use that function in my module,
and my assumption is 'lspci' is using this function(pci_class_name)
trough the proc/pci interface, so if that fuction is used in
driver/pci/proc.c and defined in driver/pci/names.c...then why i can't
use that fucntion in my module...?

=======
regards
megharaj.




On Sun, 2003-11-16 at 00:37, Greg KH wrote:
> On Sat, Nov 15, 2003 at 12:29:00PM +0530, Megharaj wrote:
> > i want to use the fucntion pci_class_name in my module.
> 
> Why?  It's not always compiled into the kernel (see the 2.6
> implementation) and is pretty much a dumb idea (we shouldn't be putting
> device string databases in the kernel, it can be done much easier in
> userspace).
> 
> Also, the function will probably go away for good in 2.7.
> 
> What do you need that function for?  Printing a pretty name to the
> syslog?
> 
> thanks,
> 
> greg k-h
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
> 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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