Home | History | Annotate | Download | only in linux
      1 # Copyright 2015 syzkaller project authors. All rights reserved.
      2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
      3 
      4 include <linux/random.h>
      5 
      6 resource fd_random[fd]
      7 
      8 openat$random(fd const[AT_FDCWD], file ptr[in, string["/dev/urandom"]], flags flags[open_flags], mode const[0]) fd_random
      9 openat$urandom(fd const[AT_FDCWD], file ptr[in, string["/dev/urandom"]], flags flags[open_flags], mode const[0]) fd_random
     10 
     11 ioctl$RNDGETENTCNT(fd fd_random, cmd const[RNDGETENTCNT], arg ptr[out, int32])
     12 ioctl$RNDADDTOENTCNT(fd fd_random, cmd const[RNDADDTOENTCNT], arg ptr[in, int32])
     13 ioctl$RNDADDENTROPY(fd fd_random, cmd const[RNDADDENTROPY], arg ptr[in, rnd_entpropy])
     14 ioctl$RNDZAPENTCNT(fd fd_random, cmd const[RNDZAPENTCNT], arg ptr[in, int32])
     15 ioctl$RNDCLEARPOOL(fd fd_random, cmd const[RNDCLEARPOOL], arg ptr[in, int32])
     16 
     17 rnd_entpropy {
     18 	entcnt	int32
     19 	size	len[pool, int32]
     20 	pool	array[int8]
     21 }
     22