Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. snd_pcm_sframes_t snd_pcm_lib_read(struct snd_pcm_substream *substream, void __user *buf, snd_pcm_uframes_t size)
  2. {
  3. ....
  4. return snd_pcm_lib_read1(substream, (unsigned long)buf, size, nonblock, snd_pcm_lib_read_transfer);
  5. }
  6.  
  7. uint32_t hash_of_foo_ptr(struct foo_st *foo) {
  8. return (uint32_t)(((intptr_t)foo) * 613) ^ ((intptr_t)foo % 51043));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement