diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2014-09-22 16:20:47 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2014-09-22 16:20:47 +0000 |
| commit | 9696feebe2320c9976607df4090f91a34c6549c3 (patch) | |
| tree | 1934338f5bf1e12f3ce97b74e9e403dcf5a32bc8 /sys/opencrypto | |
| parent | 447666f08b3bcb4cd9662c3ed0bd388170a0a30d (diff) | |
Notes
Diffstat (limited to 'sys/opencrypto')
| -rw-r--r-- | sys/opencrypto/cryptodev.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/opencrypto/cryptodev.c b/sys/opencrypto/cryptodev.c index 778a6709cd43..472a90210508 100644 --- a/sys/opencrypto/cryptodev.c +++ b/sys/opencrypto/cryptodev.c @@ -286,6 +286,8 @@ static int cryptof_ioctl(struct file *, u_long, void *, static int cryptof_stat(struct file *, struct stat *, struct ucred *, struct thread *); static int cryptof_close(struct file *, struct thread *); +static int cryptof_fill_kinfo(struct file *, struct kinfo_file *, + struct filedesc *); static struct fileops cryptofops = { .fo_read = invfo_rdwr, @@ -299,6 +301,7 @@ static struct fileops cryptofops = { .fo_chmod = invfo_chmod, .fo_chown = invfo_chown, .fo_sendfile = invfo_sendfile, + .fo_fill_kinfo = cryptof_fill_kinfo, }; static struct csession *csefind(struct fcrypt *, u_int); @@ -958,6 +961,14 @@ cryptof_close(struct file *fp, struct thread *td) return 0; } +static int +cryptof_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp) +{ + + kif->kf_type = KF_TYPE_CRYPTO; + return (0); +} + static struct csession * csefind(struct fcrypt *fcr, u_int ses) { |
