[hcflinux] driver modify current.inf

Gratiniano S. de Haro gratiniano at yahoo.com
Tue Apr 9 15:24:58 EDT 2002


The file current.inf generated by 'hcfconfig' work
fine; but when it's modified by the driver,
then it don't work. Then, i have to need run
'hcfconfig -atc' or restore the file current.inf to
the first created every time I like to connect if the
modules have been unloaded.
I yet don't understand very well the code to find the
problem. but this workaround neutralize the
function NVM_Write for it no modify the file
current.inf while you find a better solution
(you thought about this before)
I don't understand how it modify current.inf and
current.inf.old, if it only open a file for writing
(current.inf.new), and after, it rename current.inf to
.old and .new to current.inf

	Gratiniano


diff -ur hcf_old/modules/osspec/osnvm.c
hcf/modules/osspec/osnvm.c
--- hcf_old/modules/osspec/osnvm.c	Sun Mar 24 23:16:06
2002
+++ hcf/modules/osspec/osnvm.c	Tue Apr  9 22:00:47
2002
@@ -1033,14 +1033,14 @@
 

*****************************************************************************************/
 
-#if 0
+#if 1
 COM_STATUS
 NVM_Write (HANDLE hNVM, CFGMGR_CODE eCode, PVOID
pBuf, PUINT32 pdwSize)
 {
 //     return COM_STATUS_FAIL;
 	return COM_STATUS_SUCCESS;
 }
-#endif
+#else
 
 int
 NVM_Flush (CHAR_FILE * f)
@@ -1248,3 +1248,4 @@
 //	((NVM_HANDLE
*)hNVM)->sectionList[Cty_Section].dwPosition = 0;
 	return cs;
 }
+#endif


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



More information about the hcflinux mailing list