summaryrefslogtreecommitdiff
path: root/tprintf.h
blob: 488360a6710bfc23a9a826df959c856b3fd277be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef TPRINTF_H
#define TPRINTF_H

#include "built_in.h"
#include "colors.h"

extern void tprintf_init(void);
extern void tprintf(char *msg, ...) __check_format_printf(1, 2);
extern void tprintf_flush(void);
extern void tprintf_cleanup(void);

extern void tputchar_safe(int c);
extern void tputs_safe(const char *str, size_t len);

#define DEFAULT_TTY_SIZE	80

#endif /* TPRINTF_H */
load'/>
authorSebastian Sanchez <sebastian.sanchez@intel.com>2016-04-12 11:22:21 -0700
committerDoug Ledford <dledford@redhat.com>2016-04-28 16:32:27 -0400
commite38d1e4f5099d533a833afee89f439853c94f272 (patch)
tree8d0b28f3d63f0fe5be61b80f5c21c662a16fc252
parentef699e849c081d8123d574b3aa279f4e550de4ad (diff)
IB/hfi1: Check P_KEY for all sent packets from user mode
Add the P_KEY check for user-context mechanism for both PIO and SDMA. For PIO, the SendCtxtCheckEnable.DisallowKDETHPackets is set by default. When the P_KEY is set, SendCtxtCheckEnable.DisallowKDETHPackets is cleared. For SDMA, a software check was included. This change requires user processes to set the P_KEY before sending any packets, otherwise, the sent packet will fail. The original submission didn't have this check but it's required. Reviewed-by: Dean Luick <dean.luick@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Reviewed-by: Mikto Haralanov <mitko.haralanov@intel.com> Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat