hv_kvp.c (307307) | hv_kvp.c (307448) |
---|---|
1/*- 2 * Copyright (c) 2014,2016 Microsoft Corp. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 27/* 28 * Author: Sainath Varanasi. 29 * Date: 4/2012 30 * Email: bsdic@microsoft.com 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2014,2016 Microsoft Corp. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 27/* 28 * Author: Sainath Varanasi. 29 * Date: 4/2012 30 * Email: bsdic@microsoft.com 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: stable/11/sys/dev/hyperv/utilities/hv_kvp.c 307307 2016-10-14 08:45:53Z sephe $"); | 34__FBSDID("$FreeBSD: stable/11/sys/dev/hyperv/utilities/hv_kvp.c 307448 2016-10-17 01:47:49Z sephe $"); |
35 36#include <sys/param.h> 37#include <sys/kernel.h> 38#include <sys/conf.h> 39#include <sys/uio.h> 40#include <sys/bus.h> 41#include <sys/malloc.h> 42#include <sys/mbuf.h> --- 42 unchanged lines hidden (view full) --- 85 log(LOG_ERR, "hv_kvp: " __VA_ARGS__); \ 86} while (0) 87 88#define hv_kvp_log_info(...) do { \ 89 if (hv_kvp_log > 1) \ 90 log(LOG_INFO, "hv_kvp: " __VA_ARGS__); \ 91} while (0) 92 | 35 36#include <sys/param.h> 37#include <sys/kernel.h> 38#include <sys/conf.h> 39#include <sys/uio.h> 40#include <sys/bus.h> 41#include <sys/malloc.h> 42#include <sys/mbuf.h> --- 42 unchanged lines hidden (view full) --- 85 log(LOG_ERR, "hv_kvp: " __VA_ARGS__); \ 86} while (0) 87 88#define hv_kvp_log_info(...) do { \ 89 if (hv_kvp_log > 1) \ 90 log(LOG_INFO, "hv_kvp: " __VA_ARGS__); \ 91} while (0) 92 |
93static const hv_guid service_guid = { .data = | 93static const struct hyperv_guid service_guid = { .hv_guid = |
94 {0xe7, 0xf4, 0xa0, 0xa9, 0x45, 0x5a, 0x96, 0x4d, 95 0xb8, 0x27, 0x8a, 0x84, 0x1e, 0x8c, 0x3, 0xe6} }; 96 97/* character device prototypes */ 98static d_open_t hv_kvp_dev_open; 99static d_close_t hv_kvp_dev_close; 100static d_read_t hv_kvp_dev_daemon_read; 101static d_write_t hv_kvp_dev_daemon_write; --- 848 unchanged lines hidden --- | 94 {0xe7, 0xf4, 0xa0, 0xa9, 0x45, 0x5a, 0x96, 0x4d, 95 0xb8, 0x27, 0x8a, 0x84, 0x1e, 0x8c, 0x3, 0xe6} }; 96 97/* character device prototypes */ 98static d_open_t hv_kvp_dev_open; 99static d_close_t hv_kvp_dev_close; 100static d_read_t hv_kvp_dev_daemon_read; 101static d_write_t hv_kvp_dev_daemon_write; --- 848 unchanged lines hidden --- |