Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-02-04, 02:34 PM   #1
johnb
johnb
 
Join Date: Aug 2004
Posts: 11
Default /proc/driver directory removed when nvidia driver is unloaded

I would like to mention a small bug in the 1.0-6106 version of the nvidia
linux drivers. I also believe that this same bug was present in the
1.0-5336 versions.

If one unloads the nvidia driver after it was loaded:

modprobe nvidia
...
...
modprove -r nvidia

then the entire /proc/driver directory is removed by the
nvos_proc_remove_all() routine, instead of just the /proc/driver/nvidia
directory.


We have been using the following change to fix this problem:

--- NVIDIA-Linux-x86-1.0-6106-pkg1/usr/src/nv/nv.c 2004-06-23 11:51:51.000000000 -0400
+++ patch/usr/src/nv/nv.c 2004-08-02 15:18:20.887186036 -0400
@@ -782,6 +782,8 @@
{
while (entry) {
struct proc_dir_entry *next = entry->next;
+ if (entry == proc_nvidia)
+ next = (struct proc_dir_entry *)0;
if (entry->subdir)
nvos_proc_remove_all(entry->subdir);
remove_proc_entry(entry->name, entry->parent);
johnb is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/nvidia{0,ctl} should be unregistered when the nvidia module is unloaded hni NVIDIA Linux 1 06-23-12 05:00 PM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
RPM Source problems LaoTzuTao NVIDIA Linux 10 01-19-03 05:15 AM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-01-02 11:58 PM

All times are GMT -5. The time now is 06:07 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.