Lines Matching defs:buffer
120 * sprint_OID - Print an Object Identifier into a buffer
123 * @buffer: The buffer to render into
124 * @bufsize: The size of the buffer
126 * The OID is rendered into the buffer in "a.b.c.d" format and the number of
128 * and -ENOBUFS if the buffer was too small.
130 int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize)
142 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40);
145 buffer += count;
162 ret += count = snprintf(buffer, bufsize, ".%lu", num);
165 buffer += count;
172 snprintf(buffer, bufsize, "(bad)");
178 * sprint_OID - Print an Object Identifier into a buffer
180 * @buffer: The buffer to render into
181 * @bufsize: The size of the buffer
183 * The OID is rendered into the buffer in "a.b.c.d" format and the number of
186 int sprint_OID(enum OID oid, char *buffer, size_t bufsize)
194 buffer, bufsize);