algif_rng.c (5afdfd22e6ba2260129a2a7113ab0916339c4205) | algif_rng.c (598de3695201cc9f722b6e82c0097438d30fd54e) |
---|---|
1/* 2 * algif_rng: User-space interface for random number generators 3 * 4 * This file provides the user-space API for random number generators. 5 * 6 * Copyright (C) 2014, Stephan Mueller <smueller@chronox.de> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 168 unchanged lines hidden (view full) --- 177 .owner = THIS_MODULE 178}; 179 180static int __init rng_init(void) 181{ 182 return af_alg_register_type(&algif_type_rng); 183} 184 | 1/* 2 * algif_rng: User-space interface for random number generators 3 * 4 * This file provides the user-space API for random number generators. 5 * 6 * Copyright (C) 2014, Stephan Mueller <smueller@chronox.de> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 168 unchanged lines hidden (view full) --- 177 .owner = THIS_MODULE 178}; 179 180static int __init rng_init(void) 181{ 182 return af_alg_register_type(&algif_type_rng); 183} 184 |
185void __exit rng_exit(void) | 185static void __exit rng_exit(void) |
186{ 187 int err = af_alg_unregister_type(&algif_type_rng); 188 BUG_ON(err); 189} 190 191module_init(rng_init); 192module_exit(rng_exit); | 186{ 187 int err = af_alg_unregister_type(&algif_type_rng); 188 BUG_ON(err); 189} 190 191module_init(rng_init); 192module_exit(rng_exit); |