Re: close doesn't call release?

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

 



I've never experienced this. Is it possible that the problem lies in your
userspace stuff?


----- Original Message -----
From: "David Stroupe" <dstroupe@keyed-upsoftware.com>
To: <kernelnewbies@nl.linux.org>
Sent: Monday, May 20, 2002 6:28 PM
Subject: close doesn't call release?


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

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