Re: opaque "pointer" API, model, best practice ?

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

 



On Wed, Oct 14, 2020 at 09:09:11AM -0600, jim.cromie@xxxxxxxxx wrote:
> hi all,
> 
> is there an api / usage model / or best practice
> for opaque "handles" ?

"it depends" :)

What are you wanting to do exactly?

> Im aware of 1 case:
> the handle returned by zs_malloc
> I have tried to use it, and have run into locking conflicts
> when trying to keep the memory zs_mapped
> longer than the duration of a function.
> OTOH, if I map and unmap within the function, things work,
> but this is unacceptable overhead.
> 
> so I figure I should read some good code,
> rather than keep hacking at bad code.

Again, what are you trying to do?

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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