> > shmat giving an address
quoted text > > if error
> > shmat giving no address
> >
> > from user space.
>
> No you can't here because shmat() starts searching from the wrong
> start address.
If you are only hinting a desired address then that by the very meaning
of the word "hint" means you will accept a different one.
quoted text > The only way would be to search manually in /proc/self/maps
> and handle the races, but I hope you're not advocating that.
Gak, mmap a range to find a space and then shmat over the top of that.
Alan
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: [PATCH, v3] shmat: introduce flag SHM_MAP_NOT_FIXED , Alan Cox , (Wed Oct 8, 1:58 am)