kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* opaque "pointer" API, model, best practice ?
@ 2020-10-14 15:09 jim.cromie
  2020-10-14 15:21 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: jim.cromie @ 2020-10-14 15:09 UTC (permalink / raw)
  To: kernelnewbies

hi all,

is there an api / usage model / or best practice
for opaque "handles" ?

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.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-14 15:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 15:09 opaque "pointer" API, model, best practice ? jim.cromie
2020-10-14 15:21 ` Greg KH
2020-10-14 15:45   ` jim.cromie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).