close doesn't call release?

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

 



During my driver development I noticed that even when there is but one 
open call made to a device, the release function in the driver is not 
called until the application exits.  Why is it not called when I call 
close(whatever)?

My test is on a 4 line program with a single open and close.  The 
release function is not called until the main()function exits.

If I want to have the ability to reset the device during operation a 
call to close followed by a new open would be ideal.  How can I 
accomplish this?

TIA


-- 
Best regards,
David Stroupe
Keyed-up Software
5307 Faireast Court
Arlington, TX 76018
817-557-4903

--
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