[Mono-dev] How to find extern definition for MonoIO void Lock(

Rodrigo Kumpera kumpera at gmail.com
Mon Sep 15 16:16:22 UTC 2014


If it's an icall, it's either on that table of throw explicit calls to
register it.

If it's a pinvoke, it's up to the user to specify the target library

On Sat, Sep 13, 2014 at 9:54 AM, Edward Ned Harvey (mono) <
edward.harvey.mono at clevertrove.com> wrote:

> > From: Rodrigo Kumpera [mailto:kumpera at gmail.com]
> >
> > See icall-def.h
>
> Thanks.  How did you know that?
>
> Since I look in there, I can very clearly see a matching method
> definition, and what it's connected to, and I was then able to find the
> implementation in source and get all the answers I was looking for - But
> the method definition I was looking for was "Lock" which is quite a generic
> search term in hundreds of locations.
>
> I'd like to know how I can find that again next time I need it.
> Especially if it's some completely unrelated application (not mono source)
> where memorization isn't going to help me.
>
> When an "extern" specifies the dll it comes from, that makes it completely
> obvious where to look.  But lots of times "extern"s don't specify a dll,
> and my best guess after that, is that the compiler / linker / something in
> Makefile or the csproj must be including it, which could be a horrible pain
> to track down.  I'm hoping there's an easier or better way...
>
> Thanks again.  Helped a bunch this time.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20140915/38d8a50f/attachment.html>


More information about the Mono-devel-list mailing list