Replacing FBSD mutexes

elekktretterr at exemail.com.au elekktretterr at exemail.com.au
Thu Oct 25 15:21:48 PDT 2012


Thanks Markus.

I'm not sure what's the reasoning behind using those functions to set and
retreive a pointer in the first place?

I have nvidia_ctl_open which uses devfs_set_cdevpri(struct filep)

and then nvidia_ctl_close retrieves the pointer to filep via
devfs_get_cdevpri.

Is it OK to store filep in the compilation-unit scope and access it when
needed?


> Dear Petr,
>
> On Thu, Oct 25, 2012 at 10:49:11PM +1100, elekktretterr at exemail.com.au
> wrote:
>> > Another is to look at porting_drivers.txt which is in the tree, but
>> you'll
>> > learn less this way. :)
>> >
>>
>> Thanks Sascha.
>>
>> I came access these FreeBSD functions:  devfs_get_cdevpriv &
>> devfs_set_cdevpri
>>
>> What's the correct way to replace these?
>>
>
> There is none. We have discussed a solution but I have not gotten around
> to
> actually implementing it. Let me know if you want more details or think
> you
> want to do this.
>
> Markus
> --
> Markus Pfeiffer, University Manchester
> email: markus.pfeiffer at morphism.de | xmpp:
> markus.pfeiffer at jabber.morphism.de
>




More information about the Users mailing list