Re: Problem with mnt_list

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

 



Hi,

On Fri, Oct 2, 2009 at 3:11 AM, Yan Wang <wy.micheal@xxxxxxxxx> wrote:
(...)
>         } while (strcmp(iterator->mnt_mountpoint->d_name.name, vfs_mount_p->mnt_mountpoint\
> ->d_name.name) != 0 );

On my machine, iterator->mnt_mountpoint is NULL at the very end.
Seems like you should check that.

But if I remember correctly, there are special macros to traverse a
list, e.g. list_for_each(), defined in include/linux/list.h.

~H

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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