From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 In-Reply-To: References: <5526BD63.3080509@kernel.org> <9B863FBE-8332-47EB-8E6C-C8943EF5D185@kernel.org> From: "s.rawat" Date: Mon, 13 Apr 2015 15:19:09 +0530 Message-ID: Subject: Re: Regarding generic_buffer.c Application for Android To: Jonathan Cameron Cc: Jonathan Cameron , "linux-iio@vger.kernel.org" Content-Type: multipart/alternative; boundary=f46d04428084c821ea0513980781 List-ID: --f46d04428084c821ea0513980781 Content-Type: text/plain; charset=UTF-8 On Mon, Apr 13, 2015 at 11:56 AM, Jonathan Cameron < jic23@jic23.retrosnub.co.uk> wrote: > Here equivalent is probably to close and reopen the directory. > +closedir(dp) +dp = opendir(scan_el_dir); This seems to work fine.But sometimes polling accel throws error : failed to open /dev/iio:device0 . --f46d04428084c821ea0513980781 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Mon, Apr 13, 2015 at 11:56 AM, Jonathan Cameron <jic23@jic23.= retrosnub.co.uk> wrote:
Here equivalent is probably to close a= nd reopen the directory.
+closedir(dp)
+dp =3D opendir(scan_el_dir);<= /div>

This seems to work fine.But sometimes polling accel throws e= rror : failed to open /dev/iio:device0 .
--f46d04428084c821ea0513980781--