Re: removable device

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

 



Hello,
Sorry for my poor explanation.
I'm trying to write a disk driver that opens a socket and sends some
information to the other system. Its works perfectly.
My problem is that when the network fails, the information isn't sent. I
want to lock the device when its occurs, and I thought that I could use
the function media_changed to check if the network is ok. To do this
lock I'm looking for some flag or instruction that marks the device as
inaccessible, or busy. This helps me because in this way the device
doesn't have requests and wait until network recover.
I explain it better??
thanks for all
jordi


Manish Regmi escribió:
> On 5/10/06, Jordi Vaquero <jvaquero@xxxxxxxxxx> wrote:
>> Hello all,
>> I'm writing a removable driver for a disk device. My question is if
>> there ire any way to mark the block device as inaccessible until a new
>> media_changed tell me that the device is accessible. There is any flag
>> to block the access without blocking the kernel??
>> thanks for all
>> jordi
>>
>
> can you elaborate?
> Do you mean that until you get media_changed, the device should not be
> accessible by user apps (by read/write)?
>
> regards
> Manish Regmi
>
> -- 
> 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