Logo
Explore Help
Sign In
starred/linux-legacy
1
0
Fork 0
You've already forked linux-legacy
mirror of https://github.com/genesi/linux-legacy.git synced 2026-09-25 16:15:54 +00:00
Code Issues 2 Packages Projects Releases Wiki Activity
Files
00aaea2f95d73d4e2b5e45cf77c3cbb16c59e87f
linux-legacy/include/linux/virtio_rng.h

9 lines
176 B
C
Raw Normal View History

virtio: An entropy device, as suggested by hpa. Note that by itself, having a "hardware" random generator does very little: you should probably run "rngd" in your guest to feed this into the kernel entropy pool. Included: virtio_rng: dont use vmalloced addresses for virtio If virtio_rng is build as a module, random_data is an address in vmalloc space. As virtio expects guest real addresses, this can cause any kind of funny behaviour, so lets allocate random_data dynamically with kmalloc. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2008-05-30 15:09:44 -05:00
#ifndef _LINUX_VIRTIO_RNG_H
#define _LINUX_VIRTIO_RNG_H
#include <linux/virtio_config.h>
/* The ID for virtio_rng */
#define VIRTIO_ID_RNG 4
#endif /* _LINUX_VIRTIO_RNG_H */
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 41ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API