#include "xyarray.h" #include "util.h" struct xyarray *xyarray__new(int xlen, int ylen, size_t entry_size) { size_t row_size = ylen * entry_size; struct xyarray *xy = zalloc(sizeof(*xy) + xlen * row_size); if (xy != NULL) { xy->entry_size = entry_size; xy->row_size = row_size; xy->entries = xlen * ylen; } return xy; } void xyarray__reset(struct xyarray *xy) { size_t n = xy->entries * xy->entry_size; memset(xy->contents, 0, n); } void xyarray__delete(struct xyarray *xy) { free(xy); } inux/net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
path: root/include/net/psample.h
/th>
AgeCommit message (Expand)AuthorFilesLines
2017-02-09cfg80211: fix NAN bands definitionLuca Coelho1-5/+13
2017-02-08cfg80211: Pass new RSSI level in CQM RSSI notificationAndrzej Zaborowski1-1/+2
2017-02-08nl80211: add HT/VHT capabilities to AP parametersJohannes Berg1-0/+8